diff --git a/CHANGELOG.md b/CHANGELOG.md index a85ef09..67b5712 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,10 @@ ## CHANGELOG +------------------------------------------------ +## Version 0.4.3 +### Date: 17th-Sept-2021 + ### Dependency update + - Issue for Monkey patching resolved. Implemented Refine to extend class within module scope. + ------------------------------------------------ ## Version 0.4.2 ### Date: 2nd-Sept-2021 diff --git a/coverage/.last_run.json b/coverage/.last_run.json index 144e532..72254bd 100644 --- a/coverage/.last_run.json +++ b/coverage/.last_run.json @@ -1,5 +1,5 @@ { "result": { - "line": 96.71 + "line": 96.78 } } diff --git a/coverage/.resultset.json b/coverage/.resultset.json index 56af541..29a1a14 100644 --- a/coverage/.resultset.json +++ b/coverage/.resultset.json @@ -9,8 +9,6 @@ 1, 1, 1, - 1, - null, null, null, null, @@ -53,6 +51,8 @@ 1, 1, 1, + 1, + 1, null, 1, 81, @@ -120,7 +120,8 @@ 1, 1, 1, - null, + 1, + 1, 1, 1, 1, @@ -181,13 +182,130 @@ null ] }, + "/Users/uttamukkoji/Documents/Contentstack/Ruby/contentstack-ruby/lib/util.rb": { + "lines": [ + 1, + 1, + 1, + 1, + 93, + 365, + null, + null, + null, + 1, + 3628, + 3628, + 18741, + 3709, + null, + 15032, + null, + null, + 3628, + null, + null, + null, + 1, + 1, + 19, + 40, + null, + null, + 1, + 1487, + 1197, + 958, + null, + 239, + null, + null, + null, + null, + null, + 1, + 1, + 201, + 201, + null, + null, + 1, + 222, + null, + null, + null, + 1, + 1, + 0, + null, + null, + 1, + 335, + null, + null, + null, + 1, + 1, + 80, + null, + null, + 1, + 0, + null, + null, + null, + 1, + 1, + 0, + null, + null, + 1, + 18, + null, + null, + null, + 1, + 1, + 0, + null, + null, + 1, + 40, + null, + null, + null, + 1, + 1, + 0, + null, + null, + 1, + 97, + null, + null, + null, + 1, + 1, + 0, + null, + null, + 1, + 0, + null, + null, + null, + null + ] + }, "/Users/uttamukkoji/Documents/Contentstack/Ruby/contentstack-ruby/lib/contentstack/content_type.rb": { "lines": [ + 1, 1, null, 1, 1, 1, + 1, 5, 2, 10, @@ -239,11 +357,13 @@ }, "/Users/uttamukkoji/Documents/Contentstack/Ruby/contentstack-ruby/lib/contentstack/query.rb": { "lines": [ + 1, 1, null, 1, null, 1, + 1, null, null, null, @@ -873,11 +993,13 @@ }, "/Users/uttamukkoji/Documents/Contentstack/Ruby/contentstack-ruby/lib/contentstack/entry_collection.rb": { "lines": [ + 1, 1, null, 1, 1, 1, + 1, null, 1, 48, @@ -920,12 +1042,14 @@ }, "/Users/uttamukkoji/Documents/Contentstack/Ruby/contentstack-ruby/lib/contentstack/entry.rb": { "lines": [ + 1, 1, null, 1, 1, 1, 1, + 1, 229, null, null, @@ -1131,12 +1255,14 @@ }, "/Users/uttamukkoji/Documents/Contentstack/Ruby/contentstack-ruby/lib/contentstack/asset_collection.rb": { "lines": [ + 1, 1, null, 1, null, 1, 1, + 1, null, 1, 4, @@ -1161,11 +1287,13 @@ }, "/Users/uttamukkoji/Documents/Contentstack/Ruby/contentstack-ruby/lib/contentstack/asset.rb": { "lines": [ + 1, 1, null, null, 1, 1, + 1, null, null, null, @@ -1274,117 +1402,6 @@ null ] }, - "/Users/uttamukkoji/Documents/Contentstack/Ruby/contentstack-ruby/lib/util.rb": { - "lines": [ - 1, - 1, - 93, - 365, - null, - null, - null, - 1, - 3628, - 3628, - 18741, - 3709, - null, - 15032, - null, - null, - 3628, - null, - null, - null, - 1, - 1, - 19, - 40, - null, - null, - 1, - 1487, - 1197, - 958, - null, - 239, - null, - null, - null, - null, - null, - 1, - 1, - 201, - 201, - null, - null, - 1, - 222, - null, - null, - null, - 1, - 1, - 0, - null, - null, - 1, - 335, - null, - null, - null, - 1, - 1, - 80, - null, - null, - 1, - 0, - null, - null, - null, - 1, - 1, - 0, - null, - null, - 1, - 18, - null, - null, - null, - 1, - 1, - 0, - null, - null, - 1, - 40, - null, - null, - null, - 1, - 1, - 0, - null, - null, - 1, - 97, - null, - null, - null, - 1, - 1, - 0, - null, - null, - 1, - 0, - null, - null - ] - }, "/Users/uttamukkoji/Documents/Contentstack/Ruby/contentstack-ruby/spec/asset_spec.rb": { "lines": [ 1, @@ -1943,6 +1960,6 @@ ] } }, - "timestamp": 1630385582 + "timestamp": 1631696451 } } diff --git a/coverage/index.html b/coverage/index.html index d7878b0..e93ff24 100644 --- a/coverage/index.html +++ b/coverage/index.html @@ -14,7 +14,7 @@ loading
-
Generated 2021-08-31T10:23:02+05:30
+
Generated 2021-09-15T14:30:51+05:30
@@ -23,14 +23,14 @@

All Files ( - 96.71% + 96.78% covered at - 75.08 + 73.52 hits/line ) @@ -43,11 +43,11 @@

- 791 relevant lines, - 765 lines covered and + 808 relevant lines, + 782 lines covered and 26 lines missed. ( - 96.71% + 96.78% )
@@ -73,9 +73,9 @@

lib/contentstack.rb 100.00 % - 32 - 11 - 11 + 30 + 10 + 10 0 1.00 @@ -84,88 +84,88 @@

lib/contentstack/api.rb 100.00 % - 64 - 38 - 38 + 65 + 40 + 40 0 - 26.61 + 25.33 lib/contentstack/asset.rb 100.00 % - 67 - 17 - 17 + 69 + 19 + 19 0 - 8.18 + 7.42 lib/contentstack/asset_collection.rb 100.00 % - 26 - 12 - 12 + 28 + 14 + 14 0 - 2.00 + 1.86 lib/contentstack/client.rb 100.00 % - 65 - 28 - 28 + 67 + 30 + 30 0 - 20.89 + 19.57 lib/contentstack/content_type.rb 100.00 % - 52 - 25 - 25 + 54 + 27 + 27 0 - 21.20 + 19.70 lib/contentstack/entry.rb 100.00 % - 207 - 65 - 65 + 209 + 67 + 67 0 - 24.58 + 23.88 lib/contentstack/entry_collection.rb - 87.50 % - 43 - 24 - 21 + 88.46 % + 45 + 26 + 23 3 - 21.08 + 19.54 lib/contentstack/query.rb - 93.33 % - 630 - 150 - 140 + 93.42 % + 632 + 152 + 142 10 - 3.22 + 3.19 @@ -204,12 +204,12 @@

lib/util.rb - 87.50 % - 107 - 56 - 49 + 87.93 % + 111 + 58 + 51 7 - 964.02 + 930.81 @@ -321,8 +321,8 @@

- 11 relevant lines. - 11 lines covered and + 10 relevant lines. + 10 lines covered and 0 lines missed.
@@ -400,29 +400,7 @@

-
  • - 1 - - - - - require "util" -
  • -
    - -
    -
  • - - - - - - -
  • -
    - -
    -
  • +
  • @@ -433,7 +411,7 @@

  • -
  • +
  • @@ -444,7 +422,7 @@

  • -
  • +
  • @@ -455,7 +433,7 @@

  • -
  • +
  • @@ -466,7 +444,7 @@

  • -
  • +
  • @@ -477,7 +455,7 @@

  • -
  • +
  • @@ -488,7 +466,7 @@

  • -
  • +
  • @@ -499,7 +477,7 @@

  • -
  • +
  • @@ -510,7 +488,7 @@

  • -
  • +
  • @@ -521,7 +499,7 @@

  • -
  • +
  • @@ -532,7 +510,7 @@

  • -
  • +
  • @@ -543,7 +521,7 @@

  • -
  • +
  • @@ -554,7 +532,7 @@

  • -
  • +
  • @@ -565,7 +543,7 @@

  • -
  • +
  • @@ -576,7 +554,7 @@

  • -
  • +
  • @@ -587,7 +565,7 @@

  • -
  • +
  • @@ -598,7 +576,7 @@

  • -
  • +
  • 1 @@ -609,7 +587,7 @@

  • -
  • +
  • 1 @@ -620,7 +598,7 @@

  • -
  • +
  • 1 @@ -631,7 +609,7 @@

  • -
  • +
  • @@ -642,7 +620,7 @@

  • -
  • +
  • 1 @@ -653,7 +631,7 @@

  • -
  • +
  • 1 @@ -664,7 +642,7 @@

  • -
  • +
  • @@ -675,7 +653,7 @@

  • -
  • +
  • @@ -704,8 +682,8 @@

    - 38 relevant lines. - 38 lines covered and + 40 relevant lines. + 40 lines covered and 0 lines missed.
    @@ -772,13 +750,13 @@

  • -
  • - +
  • + 1 - + require 'util'
  • @@ -811,12 +789,23 @@

    + using Utility + + + +
    +
  • + 1 + + + + def self.init_api(api_key, delivery_token, environment,host)
  • -
  • +
  • 81 @@ -827,7 +816,7 @@

  • -
  • +
  • 81 @@ -838,7 +827,7 @@

  • -
  • +
  • 81 @@ -849,7 +838,7 @@

  • -
  • +
  • 81 @@ -860,7 +849,7 @@

  • -
  • +
  • 81 @@ -871,7 +860,7 @@

  • -
  • +
  • 81 @@ -882,7 +871,7 @@

  • -
  • +
  • @@ -893,7 +882,7 @@

  • -
  • +
  • @@ -904,7 +893,7 @@

  • -
  • +
  • 1 @@ -915,7 +904,7 @@

  • -
  • +
  • 9 @@ -926,7 +915,7 @@

  • -
  • +
  • 1 @@ -937,7 +926,7 @@

  • -
  • +
  • @@ -948,7 +937,7 @@

  • -
  • +
  • 8 @@ -959,7 +948,7 @@

  • -
  • +
  • @@ -970,7 +959,7 @@

  • -
  • +
  • 9 @@ -981,7 +970,7 @@

  • -
  • +
  • @@ -992,7 +981,7 @@

  • -
  • +
  • @@ -1003,7 +992,7 @@

  • -
  • +
  • 1 @@ -1014,7 +1003,7 @@

  • -
  • +
  • 48 @@ -1025,7 +1014,7 @@

  • -
  • +
  • 48 @@ -1036,7 +1025,7 @@

  • -
  • +
  • @@ -1047,7 +1036,7 @@

  • -
  • +
  • @@ -1058,7 +1047,7 @@

  • -
  • +
  • 1 @@ -1069,7 +1058,7 @@

  • -
  • +
  • 14 @@ -1080,7 +1069,7 @@

  • -
  • +
  • 14 @@ -1091,7 +1080,7 @@

  • -
  • +
  • @@ -1102,7 +1091,7 @@

  • -
  • +
  • @@ -1113,7 +1102,7 @@

  • -
  • +
  • 1 @@ -1124,7 +1113,7 @@

  • -
  • +
  • 9 @@ -1135,7 +1124,7 @@

  • -
  • +
  • 9 @@ -1146,7 +1135,7 @@

  • -
  • +
  • 9 @@ -1157,7 +1146,7 @@

  • -
  • +
  • @@ -1168,7 +1157,7 @@

  • -
  • +
  • @@ -1179,7 +1168,7 @@

  • -
  • +
  • 1 @@ -1190,7 +1179,7 @@

  • -
  • +
  • 2 @@ -1201,7 +1190,7 @@

  • -
  • +
  • 2 @@ -1212,7 +1201,7 @@

  • -
  • +
  • @@ -1223,7 +1212,7 @@

  • -
  • +
  • @@ -1234,7 +1223,7 @@

  • -
  • +
  • 1 @@ -1245,7 +1234,7 @@

  • -
  • +
  • 1 @@ -1256,7 +1245,7 @@

  • -
  • +
  • 82 @@ -1267,7 +1256,7 @@

  • -
  • +
  • @@ -1278,7 +1267,7 @@

  • -
  • +
  • 82 @@ -1289,7 +1278,7 @@

  • -
  • +
  • @@ -1300,7 +1289,7 @@

  • -
  • +
  • 82 @@ -1311,7 +1300,7 @@

  • -
  • +
  • @@ -1322,7 +1311,7 @@

  • -
  • +
  • @@ -1333,7 +1322,7 @@

  • -
  • +
  • 82 @@ -1344,7 +1333,7 @@

  • -
  • +
  • @@ -1355,7 +1344,7 @@

  • -
  • +
  • @@ -1366,7 +1355,7 @@

  • -
  • +
  • @@ -1377,7 +1366,7 @@

  • -
  • +
  • @@ -1388,7 +1377,7 @@

  • -
  • +
  • @@ -1399,7 +1388,7 @@

  • -
  • +
  • @@ -1410,7 +1399,7 @@

  • -
  • +
  • @@ -1439,8 +1428,8 @@

    - 17 relevant lines. - 17 lines covered and + 19 relevant lines. + 19 lines covered and 0 lines missed.
    @@ -1458,18 +1447,18 @@

    - module Contentstack + require 'util'

  • -
  • - +
  • + 1 - + module Contentstack
  • @@ -1480,18 +1469,18 @@

    - # Asset class to fetch file details on Conentstack server. +
    -
  • - 1 +
  • + - class Asset + # Asset class to fetch file details on Conentstack server.
  • @@ -1502,29 +1491,29 @@

    - attr_reader :uid, :content_type, :filename, :file_size, :tags, :url + class Asset
    -
  • - +
  • + 1 - + using Utility
  • -
  • - +
  • + 1 - # @!attribute [r] uid + attr_reader :uid, :content_type, :filename, :file_size, :tags, :url
  • @@ -1535,7 +1524,7 @@

    - # Contentstack Asset UID for this asset + @@ -1546,7 +1535,7 @@

    - + # @!attribute [r] uid @@ -1557,7 +1546,7 @@

    - # @!attribute [r] content_type + # Contentstack Asset UID for this asset @@ -1568,7 +1557,7 @@

    - # Content Type for the asset. image/png, image/jpeg, application/pdf, video/mp4 etc. + @@ -1579,7 +1568,7 @@

    - + # @!attribute [r] content_type @@ -1590,7 +1579,7 @@

    - # @!attribute [r] filename + # Content Type for the asset. image/png, image/jpeg, application/pdf, video/mp4 etc. @@ -1601,7 +1590,7 @@

    - # Name of the asset. + @@ -1612,7 +1601,7 @@

    - + # @!attribute [r] filename @@ -1623,7 +1612,7 @@

    - # @!attribute [r] file_size + # Name of the asset. @@ -1634,7 +1623,7 @@

    - # Size of the asset. + @@ -1645,7 +1634,7 @@

    - + # @!attribute [r] file_size @@ -1656,7 +1645,7 @@

    - # @!attribute [r] tags + # Size of the asset. @@ -1667,7 +1656,7 @@

    - # Array of tags assigned to the asset. + @@ -1678,7 +1667,7 @@

    - + # @!attribute [r] tags @@ -1689,7 +1678,7 @@

    - # @!attribute [r] url + # Array of tags assigned to the asset. @@ -1700,7 +1689,7 @@

    - # URL to fetch/render the asset + @@ -1711,7 +1700,7 @@

    - + # @!attribute [r] url @@ -1722,7 +1711,7 @@

    - # Create instance of an Asset. Accepts either a uid of asset (String) or a complete asset JSON + # URL to fetch/render the asset @@ -1733,7 +1722,7 @@

    - # @param [String/Hash] attrs + @@ -1744,7 +1733,7 @@

    - # Usage for String parameter + # Create instance of an Asset. Accepts either a uid of asset (String) or a complete asset JSON @@ -1755,7 +1744,7 @@

    - # @asset = @stack.asset("some_asset_uid") + # @param [String/Hash] attrs @@ -1766,7 +1755,7 @@

    - # @asset.fetch + # Usage for String parameter @@ -1777,7 +1766,7 @@

    - # + # @asset = @stack.asset("some_asset_uid") @@ -1788,7 +1777,7 @@

    - # Usage for Hash parameter + # @asset.fetch @@ -1799,7 +1788,7 @@

    - # @asset = @stack.asset({ + # @@ -1810,7 +1799,7 @@

    - # :uid => "some_asset_uid", + # Usage for Hash parameter @@ -1821,7 +1810,7 @@

    - # :content_type => "file_type", # image/png, image/jpeg, application/pdf, video/mp4 etc. + # @asset = @stack.asset({ @@ -1832,7 +1821,7 @@

    - # :filename => "some_file_name", + # :uid => "some_asset_uid", @@ -1843,7 +1832,7 @@

    - # :file_size => "some_file_size", + # :content_type => "file_type", # image/png, image/jpeg, application/pdf, video/mp4 etc. @@ -1854,7 +1843,7 @@

    - # :tags => ["tag1", "tag2", "tag3"], + # :filename => "some_file_name", @@ -1865,7 +1854,7 @@

    - # :url => "file_url" + # :file_size => "some_file_size", @@ -1876,7 +1865,7 @@

    - # }) + # :tags => ["tag1", "tag2", "tag3"], @@ -1887,12 +1876,34 @@

    + # :url => "file_url" + + + +
    +
  • + + + + + + # }) +
  • +
    + +
    +
  • + + + + + # @asset.fetch
  • -
  • +
  • 1 @@ -1903,7 +1914,7 @@

  • -
  • +
  • 18 @@ -1914,7 +1925,7 @@

  • -
  • +
  • 7 @@ -1925,7 +1936,7 @@

  • -
  • +
  • @@ -1936,7 +1947,7 @@

  • -
  • +
  • 11 @@ -1947,7 +1958,7 @@

  • -
  • +
  • 11 @@ -1958,7 +1969,7 @@

  • -
  • +
  • 11 @@ -1969,7 +1980,7 @@

  • -
  • +
  • 11 @@ -1980,7 +1991,7 @@

  • -
  • +
  • 11 @@ -1991,7 +2002,7 @@

  • -
  • +
  • 11 @@ -2002,7 +2013,7 @@

  • -
  • +
  • 11 @@ -2013,7 +2024,7 @@

  • -
  • +
  • @@ -2024,7 +2035,7 @@

  • -
  • +
  • @@ -2035,7 +2046,7 @@

  • -
  • +
  • 18 @@ -2046,7 +2057,7 @@

  • -
  • +
  • @@ -2057,7 +2068,7 @@

  • -
  • +
  • @@ -2068,7 +2079,7 @@

  • -
  • +
  • @@ -2079,7 +2090,7 @@

  • -
  • +
  • @@ -2090,7 +2101,7 @@

  • -
  • +
  • @@ -2101,7 +2112,7 @@

  • -
  • +
  • @@ -2112,7 +2123,7 @@

  • -
  • +
  • 1 @@ -2123,7 +2134,7 @@

  • -
  • +
  • 7 @@ -2134,7 +2145,7 @@

  • -
  • +
  • @@ -2145,7 +2156,7 @@

  • -
  • +
  • 7 @@ -2156,7 +2167,7 @@

  • -
  • +
  • @@ -2167,7 +2178,7 @@

  • -
  • +
  • @@ -2178,7 +2189,7 @@

  • -
  • +
  • @@ -2207,8 +2218,8 @@

    - 12 relevant lines. - 12 lines covered and + 14 relevant lines. + 14 lines covered and 0 lines missed.
    @@ -2231,7 +2242,18 @@

  • -
  • +
  • + 1 + + + + + require 'util' +
  • +
    + +
    +
  • @@ -2242,7 +2264,7 @@

  • -
  • +
  • 1 @@ -2253,7 +2275,7 @@

  • -
  • +
  • @@ -2264,7 +2286,7 @@

  • -
  • +
  • 1 @@ -2275,7 +2297,18 @@

  • -
  • +
  • + 1 + + + + + using Utility +
  • +
    + +
    +
  • 1 @@ -2286,7 +2319,7 @@

  • -
  • +
  • @@ -2297,7 +2330,7 @@

  • -
  • +
  • 1 @@ -2308,7 +2341,7 @@

  • -
  • +
  • 4 @@ -2319,7 +2352,7 @@

  • -
  • +
  • 2 @@ -2330,7 +2363,7 @@

  • -
  • +
  • 2 @@ -2341,7 +2374,7 @@

  • -
  • +
  • @@ -2352,7 +2385,7 @@

  • -
  • +
  • 6 @@ -2363,7 +2396,7 @@

  • -
  • +
  • @@ -2374,7 +2407,7 @@

  • -
  • +
  • @@ -2385,7 +2418,7 @@

  • -
  • +
  • @@ -2396,7 +2429,7 @@

  • -
  • +
  • @@ -2407,7 +2440,7 @@

  • -
  • +
  • @@ -2418,7 +2451,7 @@

  • -
  • +
  • @@ -2429,7 +2462,7 @@

  • -
  • +
  • @@ -2440,7 +2473,7 @@

  • -
  • +
  • 1 @@ -2451,7 +2484,7 @@

  • -
  • +
  • 2 @@ -2462,7 +2495,7 @@

  • -
  • +
  • 2 @@ -2473,7 +2506,7 @@

  • -
  • +
  • @@ -2484,7 +2517,7 @@

  • -
  • +
  • @@ -2495,7 +2528,7 @@

  • -
  • +
  • @@ -2524,8 +2557,8 @@

    - 28 relevant lines. - 28 lines covered and + 30 relevant lines. + 30 lines covered and 0 lines missed.
    @@ -2587,7 +2620,7 @@

    - module Contentstack + require 'util'

  • @@ -2598,7 +2631,7 @@

    - class Client + module Contentstack @@ -2609,12 +2642,34 @@

    + class Client + + + +
    +
  • + 1 + + + + + using Utility +
  • +
    + +
    +
  • + 1 + + + + attr_reader :region, :host
  • -
  • +
  • @@ -2625,7 +2680,7 @@

  • -
  • +
  • 1 @@ -2636,7 +2691,7 @@

  • -
  • +
  • 81 @@ -2647,7 +2702,7 @@

  • -
  • +
  • 81 @@ -2658,7 +2713,7 @@

  • -
  • +
  • 81 @@ -2669,7 +2724,7 @@

  • -
  • +
  • @@ -2680,7 +2735,7 @@

  • -
  • +
  • @@ -2691,7 +2746,7 @@

  • -
  • +
  • 1 @@ -2702,7 +2757,7 @@

  • -
  • +
  • 8 @@ -2713,7 +2768,7 @@

  • -
  • +
  • @@ -2724,7 +2779,7 @@

  • -
  • +
  • @@ -2735,7 +2790,7 @@

  • -
  • +
  • 1 @@ -2746,7 +2801,7 @@

  • -
  • +
  • 69 @@ -2757,7 +2812,7 @@

  • -
  • +
  • @@ -2768,7 +2823,7 @@

  • -
  • +
  • @@ -2779,7 +2834,7 @@

  • -
  • +
  • 1 @@ -2790,7 +2845,7 @@

  • -
  • +
  • 2 @@ -2801,7 +2856,7 @@

  • -
  • +
  • @@ -2812,7 +2867,7 @@

  • -
  • +
  • @@ -2823,7 +2878,7 @@

  • -
  • +
  • 1 @@ -2834,7 +2889,7 @@

  • -
  • +
  • 7 @@ -2845,7 +2900,7 @@

  • -
  • +
  • @@ -2856,7 +2911,7 @@

  • -
  • +
  • @@ -2867,7 +2922,7 @@

  • -
  • +
  • @@ -2878,7 +2933,7 @@

  • -
  • +
  • @@ -2889,7 +2944,7 @@

  • -
  • +
  • @@ -2900,7 +2955,7 @@

  • -
  • +
  • @@ -2911,7 +2966,7 @@

  • -
  • +
  • @@ -2922,7 +2977,7 @@

  • -
  • +
  • @@ -2933,7 +2988,7 @@

  • -
  • +
  • @@ -2944,7 +2999,7 @@

  • -
  • +
  • @@ -2955,7 +3010,7 @@

  • -
  • +
  • @@ -2966,7 +3021,7 @@

  • -
  • +
  • @@ -2977,7 +3032,7 @@

  • -
  • +
  • @@ -2988,7 +3043,7 @@

  • -
  • +
  • @@ -2999,7 +3054,7 @@

  • -
  • +
  • @@ -3010,7 +3065,7 @@

  • -
  • +
  • @@ -3021,7 +3076,7 @@

  • -
  • +
  • @@ -3032,7 +3087,7 @@

  • -
  • +
  • @@ -3043,7 +3098,7 @@

  • -
  • +
  • @@ -3054,7 +3109,7 @@

  • -
  • +
  • @@ -3065,7 +3120,7 @@

  • -
  • +
  • 1 @@ -3076,7 +3131,7 @@

  • -
  • +
  • 2 @@ -3087,7 +3142,7 @@

  • -
  • +
  • 2 @@ -3098,7 +3153,7 @@

  • -
  • +
  • @@ -3109,7 +3164,7 @@

  • -
  • +
  • @@ -3120,7 +3175,7 @@

  • -
  • +
  • 1 @@ -3131,7 +3186,7 @@

  • -
  • +
  • 1 @@ -3142,7 +3197,7 @@

  • -
  • +
  • 79 @@ -3153,7 +3208,7 @@

  • -
  • +
  • @@ -3164,7 +3219,7 @@

  • -
  • +
  • 77 @@ -3175,7 +3230,7 @@

  • -
  • +
  • @@ -3186,7 +3241,7 @@

  • -
  • +
  • 2 @@ -3197,7 +3252,7 @@

  • -
  • +
  • @@ -3208,7 +3263,7 @@

  • -
  • +
  • 79 @@ -3219,7 +3274,7 @@

  • -
  • +
  • @@ -3230,7 +3285,7 @@

  • -
  • +
  • @@ -3241,7 +3296,7 @@

  • -
  • +
  • @@ -3270,8 +3325,8 @@

    - 25 relevant lines. - 25 lines covered and + 27 relevant lines. + 27 lines covered and 0 lines missed.
    @@ -3294,7 +3349,18 @@

  • -
  • +
  • + 1 + + + + + require 'util' +
  • +
    + +
    +
  • @@ -3305,7 +3371,7 @@

  • -
  • +
  • 1 @@ -3316,7 +3382,7 @@

  • -
  • +
  • 1 @@ -3327,7 +3393,18 @@

  • -
  • +
  • + 1 + + + + + using Utility +
  • +
    + +
    +
  • 1 @@ -3338,7 +3415,7 @@

  • -
  • +
  • 5 @@ -3349,7 +3426,7 @@

  • -
  • +
  • 2 @@ -3360,7 +3437,7 @@

  • -
  • +
  • 10 @@ -3371,7 +3448,7 @@

  • -
  • +
  • @@ -3382,7 +3459,7 @@

  • -
  • +
  • 3 @@ -3393,7 +3470,7 @@

  • -
  • +
  • 1 @@ -3404,7 +3481,7 @@

  • -
  • +
  • @@ -3415,7 +3492,7 @@

  • -
  • +
  • 3 @@ -3426,7 +3503,7 @@

  • -
  • +
  • @@ -3437,7 +3514,7 @@

  • -
  • +
  • @@ -3448,7 +3525,7 @@

  • -
  • +
  • @@ -3459,7 +3536,7 @@

  • -
  • +
  • @@ -3470,7 +3547,7 @@

  • -
  • +
  • @@ -3481,7 +3558,7 @@

  • -
  • +
  • @@ -3492,7 +3569,7 @@

  • -
  • +
  • @@ -3503,7 +3580,7 @@

  • -
  • +
  • 2 @@ -3514,7 +3591,7 @@

  • -
  • +
  • 81 @@ -3525,7 +3602,7 @@

  • -
  • +
  • @@ -3536,7 +3613,7 @@

  • -
  • +
  • @@ -3547,7 +3624,7 @@

  • -
  • +
  • @@ -3558,7 +3635,7 @@

  • -
  • +
  • @@ -3569,7 +3646,7 @@

  • -
  • +
  • 1 @@ -3580,7 +3657,7 @@

  • -
  • +
  • 91 @@ -3591,7 +3668,7 @@

  • -
  • +
  • @@ -3602,7 +3679,7 @@

  • -
  • +
  • @@ -3613,7 +3690,7 @@

  • -
  • +
  • 1 @@ -3624,7 +3701,7 @@

  • -
  • +
  • 53 @@ -3635,7 +3712,7 @@

  • -
  • +
  • @@ -3646,7 +3723,7 @@

  • -
  • +
  • @@ -3657,7 +3734,7 @@

  • -
  • +
  • 1 @@ -3668,7 +3745,7 @@

  • -
  • +
  • 15 @@ -3679,7 +3756,7 @@

  • -
  • +
  • @@ -3690,7 +3767,7 @@

  • -
  • +
  • @@ -3701,7 +3778,7 @@

  • -
  • +
  • @@ -3712,7 +3789,7 @@

  • -
  • +
  • 1 @@ -3723,7 +3800,7 @@

  • -
  • +
  • 8 @@ -3734,7 +3811,7 @@

  • -
  • +
  • 8 @@ -3745,7 +3822,7 @@

  • -
  • +
  • 224 @@ -3756,7 +3833,7 @@

  • -
  • +
  • @@ -3767,7 +3844,7 @@

  • -
  • +
  • @@ -3778,7 +3855,7 @@

  • -
  • +
  • @@ -3789,7 +3866,7 @@

  • -
  • +
  • 1 @@ -3800,7 +3877,7 @@

  • -
  • +
  • 1 @@ -3811,7 +3888,7 @@

  • -
  • +
  • 14 @@ -3822,7 +3899,7 @@

  • -
  • +
  • @@ -3833,7 +3910,7 @@

  • -
  • +
  • @@ -3844,7 +3921,7 @@

  • -
  • +
  • @@ -3873,8 +3950,8 @@

    - 65 relevant lines. - 65 lines covered and + 67 relevant lines. + 67 lines covered and 0 lines missed.
    @@ -3897,7 +3974,18 @@

  • -
  • +
  • + 1 + + + + + require 'util' +
  • +
    + +
    +
  • @@ -3908,7 +3996,7 @@

  • -
  • +
  • 1 @@ -3919,7 +4007,7 @@

  • -
  • +
  • 1 @@ -3930,7 +4018,18 @@

  • -
  • +
  • + 1 + + + + + using Utility +
  • +
    + +
    +
  • 1 @@ -3941,7 +4040,7 @@

  • -
  • +
  • 1 @@ -3952,7 +4051,7 @@

  • -
  • +
  • 229 @@ -3963,7 +4062,7 @@

  • -
  • +
  • @@ -3974,7 +4073,7 @@

  • -
  • +
  • @@ -3985,7 +4084,7 @@

  • -
  • +
  • @@ -3996,7 +4095,7 @@

  • -
  • +
  • @@ -4007,7 +4106,7 @@

  • -
  • +
  • @@ -4018,7 +4117,7 @@

  • -
  • +
  • @@ -4029,7 +4128,7 @@

  • -
  • +
  • @@ -4040,7 +4139,7 @@

  • -
  • +
  • @@ -4051,7 +4150,7 @@

  • -
  • +
  • @@ -4062,7 +4161,7 @@

  • -
  • +
  • @@ -4073,7 +4172,7 @@

  • -
  • +
  • @@ -4084,7 +4183,7 @@

  • -
  • +
  • 1 @@ -4095,7 +4194,7 @@

  • -
  • +
  • 1 @@ -4106,7 +4205,7 @@

  • -
  • +
  • 1 @@ -4117,7 +4216,7 @@

  • -
  • +
  • @@ -4128,7 +4227,7 @@

  • -
  • +
  • @@ -4139,7 +4238,7 @@

  • -
  • +
  • @@ -4150,7 +4249,7 @@

  • -
  • +
  • @@ -4161,7 +4260,7 @@

  • -
  • +
  • @@ -4172,7 +4271,7 @@

  • -
  • +
  • @@ -4183,7 +4282,7 @@

  • -
  • +
  • @@ -4194,7 +4293,7 @@

  • -
  • +
  • @@ -4205,7 +4304,7 @@

  • -
  • +
  • @@ -4216,7 +4315,7 @@

  • -
  • +
  • @@ -4227,7 +4326,7 @@

  • -
  • +
  • @@ -4238,7 +4337,7 @@

  • -
  • +
  • @@ -4249,7 +4348,7 @@

  • -
  • +
  • @@ -4260,7 +4359,7 @@

  • -
  • +
  • @@ -4271,7 +4370,7 @@

  • -
  • +
  • @@ -4282,7 +4381,7 @@

  • -
  • +
  • @@ -4293,7 +4392,7 @@

  • -
  • +
  • @@ -4304,7 +4403,7 @@

  • -
  • +
  • @@ -4315,7 +4414,7 @@

  • -
  • +
  • 1 @@ -4326,7 +4425,7 @@

  • -
  • +
  • 2 @@ -4337,7 +4436,7 @@

  • -
  • +
  • 2 @@ -4348,7 +4447,7 @@

  • -
  • +
  • 1 @@ -4359,7 +4458,7 @@

  • -
  • +
  • 1 @@ -4370,7 +4469,7 @@

  • -
  • +
  • @@ -4381,7 +4480,7 @@

  • -
  • +
  • 1 @@ -4392,7 +4491,7 @@

  • -
  • +
  • 1 @@ -4403,7 +4502,7 @@

  • -
  • +
  • @@ -4414,7 +4513,7 @@

  • -
  • +
  • @@ -4425,7 +4524,7 @@

  • -
  • +
  • 2 @@ -4436,7 +4535,7 @@

  • -
  • +
  • 2 @@ -4447,7 +4546,7 @@

  • -
  • +
  • @@ -4458,7 +4557,7 @@

  • -
  • +
  • @@ -4469,7 +4568,7 @@

  • -
  • +
  • @@ -4480,7 +4579,7 @@

  • -
  • +
  • @@ -4491,7 +4590,7 @@

  • -
  • +
  • @@ -4502,7 +4601,7 @@

  • -
  • +
  • @@ -4513,7 +4612,7 @@

  • -
  • +
  • @@ -4524,7 +4623,7 @@

  • -
  • +
  • @@ -4535,7 +4634,7 @@

  • -
  • +
  • @@ -4546,7 +4645,7 @@

  • -
  • +
  • @@ -4557,7 +4656,7 @@

  • -
  • +
  • @@ -4568,7 +4667,7 @@

  • -
  • +
  • @@ -4579,7 +4678,7 @@

  • -
  • +
  • @@ -4590,7 +4689,7 @@

  • -
  • +
  • @@ -4601,7 +4700,7 @@

  • -
  • +
  • @@ -4612,7 +4711,7 @@

  • -
  • +
  • @@ -4623,7 +4722,7 @@

  • -
  • +
  • @@ -4634,7 +4733,7 @@

  • -
  • +
  • @@ -4645,7 +4744,7 @@

  • -
  • +
  • 1 @@ -4656,7 +4755,7 @@

  • -
  • +
  • 3 @@ -4667,7 +4766,7 @@

  • -
  • +
  • 3 @@ -4678,7 +4777,7 @@

  • -
  • +
  • 1 @@ -4689,7 +4788,7 @@

  • -
  • +
  • 1 @@ -4700,7 +4799,7 @@

  • -
  • +
  • @@ -4711,7 +4810,7 @@

  • -
  • +
  • 2 @@ -4722,7 +4821,7 @@

  • -
  • +
  • 2 @@ -4733,7 +4832,7 @@

  • -
  • +
  • @@ -4744,7 +4843,7 @@

  • -
  • +
  • @@ -4755,7 +4854,7 @@

  • -
  • +
  • 3 @@ -4766,7 +4865,7 @@

  • -
  • +
  • 3 @@ -4777,7 +4876,7 @@

  • -
  • +
  • @@ -4788,7 +4887,7 @@

  • -
  • +
  • @@ -4799,7 +4898,7 @@

  • -
  • +
  • @@ -4810,7 +4909,7 @@

  • -
  • +
  • @@ -4821,7 +4920,7 @@

  • -
  • +
  • @@ -4832,7 +4931,7 @@

  • -
  • +
  • @@ -4843,7 +4942,7 @@

  • -
  • +
  • @@ -4854,7 +4953,7 @@

  • -
  • +
  • @@ -4865,7 +4964,7 @@

  • -
  • +
  • @@ -4876,7 +4975,7 @@

  • -
  • +
  • @@ -4887,7 +4986,7 @@

  • -
  • +
  • @@ -4898,7 +4997,7 @@

  • -
  • +
  • @@ -4909,7 +5008,7 @@

  • -
  • +
  • @@ -4920,7 +5019,7 @@

  • -
  • +
  • @@ -4931,7 +5030,7 @@

  • -
  • +
  • @@ -4942,7 +5041,7 @@

  • -
  • +
  • @@ -4953,7 +5052,7 @@

  • -
  • +
  • @@ -4964,7 +5063,7 @@

  • -
  • +
  • 1 @@ -4975,7 +5074,7 @@

  • -
  • +
  • 3 @@ -4986,7 +5085,7 @@

  • -
  • +
  • @@ -4997,7 +5096,7 @@

  • -
  • +
  • @@ -5008,7 +5107,7 @@

  • -
  • +
  • @@ -5019,7 +5118,7 @@

  • -
  • +
  • @@ -5030,7 +5129,7 @@

  • -
  • +
  • @@ -5041,7 +5140,7 @@

  • -
  • +
  • @@ -5052,7 +5151,7 @@

  • -
  • +
  • @@ -5063,7 +5162,7 @@

  • -
  • +
  • @@ -5074,7 +5173,7 @@

  • -
  • +
  • @@ -5085,7 +5184,7 @@

  • -
  • +
  • @@ -5096,7 +5195,7 @@

  • -
  • +
  • 1 @@ -5107,7 +5206,7 @@

  • -
  • +
  • 1 @@ -5118,7 +5217,7 @@

  • -
  • +
  • 1 @@ -5129,7 +5228,7 @@

  • -
  • +
  • @@ -5140,7 +5239,7 @@

  • -
  • +
  • @@ -5151,7 +5250,7 @@

  • -
  • +
  • @@ -5162,7 +5261,7 @@

  • -
  • +
  • @@ -5173,7 +5272,7 @@

  • -
  • +
  • @@ -5184,7 +5283,7 @@

  • -
  • +
  • @@ -5195,7 +5294,7 @@

  • -
  • +
  • @@ -5206,7 +5305,7 @@

  • -
  • +
  • @@ -5217,7 +5316,7 @@

  • -
  • +
  • @@ -5228,7 +5327,7 @@

  • -
  • +
  • @@ -5239,7 +5338,7 @@

  • -
  • +
  • 1 @@ -5250,7 +5349,7 @@

  • -
  • +
  • 1 @@ -5261,7 +5360,7 @@

  • -
  • +
  • 1 @@ -5272,7 +5371,7 @@

  • -
  • +
  • @@ -5283,7 +5382,7 @@

  • -
  • +
  • @@ -5294,7 +5393,7 @@

  • -
  • +
  • @@ -5305,7 +5404,7 @@

  • -
  • +
  • @@ -5316,7 +5415,7 @@

  • -
  • +
  • @@ -5327,7 +5426,7 @@

  • -
  • +
  • @@ -5338,7 +5437,7 @@

  • -
  • +
  • @@ -5349,7 +5448,7 @@

  • -
  • +
  • @@ -5360,7 +5459,7 @@

  • -
  • +
  • @@ -5371,7 +5470,7 @@

  • -
  • +
  • @@ -5382,7 +5481,7 @@

  • -
  • +
  • 1 @@ -5393,7 +5492,7 @@

  • -
  • +
  • 1 @@ -5404,7 +5503,7 @@

  • -
  • +
  • 1 @@ -5415,7 +5514,7 @@

  • -
  • +
  • @@ -5426,7 +5525,7 @@

  • -
  • +
  • @@ -5437,7 +5536,7 @@

  • -
  • +
  • @@ -5448,7 +5547,7 @@

  • -
  • +
  • @@ -5459,7 +5558,7 @@

  • -
  • +
  • @@ -5470,7 +5569,7 @@

  • -
  • +
  • @@ -5481,7 +5580,7 @@

  • -
  • +
  • @@ -5492,7 +5591,7 @@

  • -
  • +
  • @@ -5503,7 +5602,7 @@

  • -
  • +
  • @@ -5514,7 +5613,7 @@

  • -
  • +
  • @@ -5525,7 +5624,7 @@

  • -
  • +
  • 1 @@ -5536,7 +5635,7 @@

  • -
  • +
  • 1 @@ -5547,7 +5646,7 @@

  • -
  • +
  • 1 @@ -5558,7 +5657,7 @@

  • -
  • +
  • @@ -5569,7 +5668,7 @@

  • -
  • +
  • @@ -5580,7 +5679,7 @@

  • -
  • +
  • @@ -5591,7 +5690,7 @@

  • -
  • +
  • @@ -5602,7 +5701,7 @@

  • -
  • +
  • @@ -5613,7 +5712,7 @@

  • -
  • +
  • @@ -5624,7 +5723,7 @@

  • -
  • +
  • @@ -5635,7 +5734,7 @@

  • -
  • +
  • @@ -5646,7 +5745,7 @@

  • -
  • +
  • @@ -5657,7 +5756,7 @@

  • -
  • +
  • @@ -5668,7 +5767,7 @@

  • -
  • +
  • 1 @@ -5679,7 +5778,7 @@

  • -
  • +
  • 1 @@ -5690,7 +5789,7 @@

  • -
  • +
  • 1 @@ -5701,7 +5800,7 @@

  • -
  • +
  • @@ -5712,7 +5811,7 @@

  • -
  • +
  • @@ -5723,7 +5822,7 @@

  • -
  • +
  • @@ -5734,7 +5833,7 @@

  • -
  • +
  • @@ -5745,7 +5844,7 @@

  • -
  • +
  • 1 @@ -5756,7 +5855,7 @@

  • -
  • +
  • 3 @@ -5767,7 +5866,7 @@

  • -
  • +
  • 3 @@ -5778,7 +5877,7 @@

  • -
  • +
  • 3 @@ -5789,7 +5888,7 @@

  • -
  • +
  • 3 @@ -5800,7 +5899,7 @@

  • -
  • +
  • @@ -5811,7 +5910,7 @@

  • -
  • +
  • @@ -5822,7 +5921,7 @@

  • -
  • +
  • @@ -5833,7 +5932,7 @@

  • -
  • +
  • @@ -5844,7 +5943,7 @@

  • -
  • +
  • @@ -5855,7 +5954,7 @@

  • -
  • +
  • @@ -5866,7 +5965,7 @@

  • -
  • +
  • @@ -5877,7 +5976,7 @@

  • -
  • +
  • @@ -5888,7 +5987,7 @@

  • -
  • +
  • @@ -5899,7 +5998,7 @@

  • -
  • +
  • @@ -5910,7 +6009,7 @@

  • -
  • +
  • 1 @@ -5921,7 +6020,7 @@

  • -
  • +
  • 14 @@ -5932,7 +6031,7 @@

  • -
  • +
  • 14 @@ -5943,7 +6042,7 @@

  • -
  • +
  • 14 @@ -5954,7 +6053,7 @@

  • -
  • +
  • 14 @@ -5965,7 +6064,7 @@

  • -
  • +
  • 14 @@ -5976,7 +6075,7 @@

  • -
  • +
  • @@ -5987,7 +6086,7 @@

  • -
  • +
  • @@ -5998,7 +6097,7 @@

  • -
  • +
  • 1 @@ -6009,7 +6108,7 @@

  • -
  • +
  • 4 @@ -6020,7 +6119,7 @@

  • -
  • +
  • 4 @@ -6031,7 +6130,7 @@

  • -
  • +
  • @@ -6042,7 +6141,7 @@

  • -
  • +
  • @@ -6053,7 +6152,7 @@

  • -
  • +
  • 1 @@ -6064,7 +6163,7 @@

  • -
  • +
  • 1 @@ -6075,7 +6174,7 @@

  • -
  • +
  • 243 @@ -6086,7 +6185,7 @@

  • -
  • +
  • 243 @@ -6097,7 +6196,7 @@

  • -
  • +
  • 243 @@ -6108,7 +6207,7 @@

  • -
  • +
  • 243 @@ -6119,7 +6218,7 @@

  • -
  • +
  • 243 @@ -6130,7 +6229,7 @@

  • -
  • +
  • @@ -6141,7 +6240,7 @@

  • -
  • +
  • @@ -6152,7 +6251,7 @@

  • -
  • +
  • @@ -6172,7 +6271,7 @@

    lib/contentstack/entry_collection.rb

    - 87.5% + 88.46% lines covered @@ -6181,8 +6280,8 @@

    - 24 relevant lines. - 21 lines covered and + 26 relevant lines. + 23 lines covered and 3 lines missed.
    @@ -6205,24 +6304,24 @@

  • -
  • - +
  • + 1 - + require 'util'
  • -
  • - 1 +
  • + - module Contentstack +
  • @@ -6233,7 +6332,7 @@

    - class EntryCollection + module Contentstack @@ -6244,12 +6343,34 @@

    - attr_reader :entries, :count, :content_type, :schema + class EntryCollection
    -
  • +
  • + 1 + + + + + using Utility +
  • +
    + +
    +
  • + 1 + + + + + attr_reader :entries, :count, :content_type, :schema +
  • +
    + +
    +
  • @@ -6260,7 +6381,7 @@

  • -
  • +
  • 1 @@ -6271,7 +6392,7 @@

  • -
  • +
  • 48 @@ -6282,7 +6403,7 @@

  • -
  • +
  • 262 @@ -6293,7 +6414,7 @@

  • -
  • +
  • 48 @@ -6304,7 +6425,7 @@

  • -
  • +
  • 48 @@ -6315,7 +6436,7 @@

  • -
  • +
  • 48 @@ -6326,7 +6447,7 @@

  • -
  • +
  • @@ -6337,7 +6458,7 @@

  • -
  • +
  • @@ -6348,7 +6469,7 @@

  • -
  • +
  • 1 @@ -6359,7 +6480,7 @@

  • -
  • +
  • @@ -6370,7 +6491,7 @@

  • -
  • +
  • @@ -6381,7 +6502,7 @@

  • -
  • +
  • @@ -6392,7 +6513,7 @@

  • -
  • +
  • 1 @@ -6403,7 +6524,7 @@

  • -
  • +
  • @@ -6414,7 +6535,7 @@

  • -
  • +
  • @@ -6425,7 +6546,7 @@

  • -
  • +
  • @@ -6436,7 +6557,7 @@

  • -
  • +
  • 1 @@ -6447,7 +6568,7 @@

  • -
  • +
  • @@ -6458,7 +6579,7 @@

  • -
  • +
  • @@ -6469,7 +6590,7 @@

  • -
  • +
  • @@ -6480,7 +6601,7 @@

  • -
  • +
  • 1 @@ -6491,7 +6612,7 @@

  • -
  • +
  • 20 @@ -6502,7 +6623,7 @@

  • -
  • +
  • @@ -6513,7 +6634,7 @@

  • -
  • +
  • @@ -6524,7 +6645,7 @@

  • -
  • +
  • 1 @@ -6535,7 +6656,7 @@

  • -
  • +
  • 17 @@ -6546,7 +6667,7 @@

  • -
  • +
  • @@ -6557,7 +6678,7 @@

  • -
  • +
  • @@ -6568,7 +6689,7 @@

  • -
  • +
  • 1 @@ -6579,7 +6700,7 @@

  • -
  • +
  • 2 @@ -6590,7 +6711,7 @@

  • -
  • +
  • @@ -6601,7 +6722,7 @@

  • -
  • +
  • @@ -6612,7 +6733,7 @@

  • -
  • +
  • 1 @@ -6623,7 +6744,7 @@

  • -
  • +
  • 1 @@ -6634,7 +6755,7 @@

  • -
  • +
  • @@ -6645,7 +6766,7 @@

  • -
  • +
  • @@ -6656,7 +6777,7 @@

  • -
  • +
  • @@ -6676,7 +6797,7 @@

    lib/contentstack/query.rb

    - 93.33% + 93.42% lines covered @@ -6685,8 +6806,8 @@

    - 150 relevant lines. - 140 lines covered and + 152 relevant lines. + 142 lines covered and 10 lines missed.
    @@ -6709,7 +6830,18 @@

  • -
  • +
  • + 1 + + + + + require 'util' +
  • +
    + +
    +
  • @@ -6720,7 +6852,7 @@

  • -
  • +
  • 1 @@ -6731,7 +6863,7 @@

  • -
  • +
  • @@ -6742,7 +6874,7 @@

  • -
  • +
  • 1 @@ -6753,7 +6885,18 @@

  • -
  • +
  • + 1 + + + + + using Utility +
  • +
    + +
    +
  • @@ -6764,7 +6907,7 @@

  • -
  • +
  • @@ -6775,7 +6918,7 @@

  • -
  • +
  • @@ -6786,7 +6929,7 @@

  • -
  • +
  • @@ -6797,7 +6940,7 @@

  • -
  • +
  • @@ -6808,7 +6951,7 @@

  • -
  • +
  • @@ -6819,7 +6962,7 @@

  • -
  • +
  • 1 @@ -6830,7 +6973,7 @@

  • -
  • +
  • @@ -6841,7 +6984,7 @@

  • -
  • +
  • @@ -6852,7 +6995,7 @@

  • -
  • +
  • @@ -6863,7 +7006,7 @@

  • -
  • +
  • @@ -6874,7 +7017,7 @@

  • -
  • +
  • @@ -6885,7 +7028,7 @@

  • -
  • +
  • @@ -6896,7 +7039,7 @@

  • -
  • +
  • @@ -6907,7 +7050,7 @@

  • -
  • +
  • @@ -6918,7 +7061,7 @@

  • -
  • +
  • @@ -6929,7 +7072,7 @@

  • -
  • +
  • 1 @@ -6940,7 +7083,7 @@

  • -
  • +
  • 53 @@ -6951,7 +7094,7 @@

  • -
  • +
  • @@ -6962,7 +7105,7 @@

  • -
  • +
  • 53 @@ -6973,7 +7116,7 @@

  • -
  • +
  • @@ -6984,7 +7127,7 @@

  • -
  • +
  • @@ -6995,7 +7138,7 @@

  • -
  • +
  • @@ -7006,7 +7149,7 @@

  • -
  • +
  • @@ -7017,7 +7160,7 @@

  • -
  • +
  • @@ -7028,7 +7171,7 @@

  • -
  • +
  • @@ -7039,7 +7182,7 @@

  • -
  • +
  • @@ -7050,7 +7193,7 @@

  • -
  • +
  • @@ -7061,7 +7204,7 @@

  • -
  • +
  • @@ -7072,7 +7215,7 @@

  • -
  • +
  • @@ -7083,7 +7226,7 @@

  • -
  • +
  • @@ -7094,7 +7237,7 @@

  • -
  • +
  • @@ -7105,7 +7248,7 @@

  • -
  • +
  • @@ -7116,7 +7259,7 @@

  • -
  • +
  • @@ -7127,7 +7270,7 @@

  • -
  • +
  • @@ -7138,7 +7281,7 @@

  • -
  • +
  • @@ -7149,7 +7292,7 @@

  • -
  • +
  • 1 @@ -7160,7 +7303,7 @@

  • -
  • +
  • @@ -7171,7 +7314,7 @@

  • -
  • +
  • @@ -7182,7 +7325,7 @@

  • -
  • +
  • @@ -7193,7 +7336,7 @@

  • -
  • +
  • @@ -7204,7 +7347,7 @@

  • -
  • +
  • @@ -7215,7 +7358,7 @@

  • -
  • +
  • @@ -7226,7 +7369,7 @@

  • -
  • +
  • @@ -7237,7 +7380,7 @@

  • -
  • +
  • @@ -7248,7 +7391,7 @@

  • -
  • +
  • @@ -7259,7 +7402,7 @@

  • -
  • +
  • @@ -7270,7 +7413,7 @@

  • -
  • +
  • @@ -7281,7 +7424,7 @@

  • -
  • +
  • 1 @@ -7292,7 +7435,7 @@

  • -
  • +
  • @@ -7303,7 +7446,7 @@

  • -
  • +
  • @@ -7314,7 +7457,7 @@

  • -
  • +
  • @@ -7325,7 +7468,7 @@

  • -
  • +
  • @@ -7336,7 +7479,7 @@

  • -
  • +
  • @@ -7347,7 +7490,7 @@

  • -
  • +
  • @@ -7358,7 +7501,7 @@

  • -
  • +
  • @@ -7369,7 +7512,7 @@

  • -
  • +
  • @@ -7380,7 +7523,7 @@

  • -
  • +
  • @@ -7391,7 +7534,7 @@

  • -
  • +
  • @@ -7402,7 +7545,7 @@

  • -
  • +
  • @@ -7413,7 +7556,7 @@

  • -
  • +
  • @@ -7424,7 +7567,7 @@

  • -
  • +
  • @@ -7435,7 +7578,7 @@

  • -
  • +
  • @@ -7446,7 +7589,7 @@

  • -
  • +
  • 1 @@ -7457,7 +7600,7 @@

  • -
  • +
  • 2 @@ -7468,7 +7611,7 @@

  • -
  • +
  • @@ -7479,7 +7622,7 @@

  • -
  • +
  • @@ -7490,7 +7633,7 @@

  • -
  • +
  • @@ -7501,7 +7644,7 @@

  • -
  • +
  • @@ -7512,7 +7655,7 @@

  • -
  • +
  • @@ -7523,7 +7666,7 @@

  • -
  • +
  • @@ -7534,7 +7677,7 @@

  • -
  • +
  • @@ -7545,7 +7688,7 @@

  • -
  • +
  • @@ -7556,7 +7699,7 @@

  • -
  • +
  • @@ -7567,7 +7710,7 @@

  • -
  • +
  • @@ -7578,7 +7721,7 @@

  • -
  • +
  • @@ -7589,7 +7732,7 @@

  • -
  • +
  • @@ -7600,7 +7743,7 @@

  • -
  • +
  • 1 @@ -7611,7 +7754,7 @@

  • -
  • +
  • @@ -7622,7 +7765,7 @@

  • -
  • +
  • 4 @@ -7633,7 +7776,7 @@

  • -
  • +
  • @@ -7644,7 +7787,7 @@

  • -
  • +
  • @@ -7655,7 +7798,7 @@

  • -
  • +
  • @@ -7666,7 +7809,7 @@

  • -
  • +
  • @@ -7677,7 +7820,7 @@

  • -
  • +
  • 4 @@ -7688,7 +7831,7 @@

  • -
  • +
  • @@ -7699,7 +7842,7 @@

  • -
  • +
  • 4 @@ -7710,7 +7853,7 @@

  • -
  • +
  • @@ -7721,7 +7864,7 @@

  • -
  • +
  • @@ -7732,7 +7875,7 @@

  • -
  • +
  • @@ -7743,7 +7886,7 @@

  • -
  • +
  • @@ -7754,7 +7897,7 @@

  • -
  • +
  • @@ -7765,7 +7908,7 @@

  • -
  • +
  • @@ -7776,7 +7919,7 @@

  • -
  • +
  • @@ -7787,7 +7930,7 @@

  • -
  • +
  • @@ -7798,7 +7941,7 @@

  • -
  • +
  • @@ -7809,7 +7952,7 @@

  • -
  • +
  • @@ -7820,7 +7963,7 @@

  • -
  • +
  • 1 @@ -7831,7 +7974,7 @@

  • -
  • +
  • 1 @@ -7842,7 +7985,7 @@

  • -
  • +
  • @@ -7853,7 +7996,7 @@

  • -
  • +
  • @@ -7864,7 +8007,7 @@

  • -
  • +
  • @@ -7875,7 +8018,7 @@

  • -
  • +
  • @@ -7886,7 +8029,7 @@

  • -
  • +
  • @@ -7897,7 +8040,7 @@

  • -
  • +
  • @@ -7908,7 +8051,7 @@

  • -
  • +
  • @@ -7919,7 +8062,7 @@

  • -
  • +
  • @@ -7930,7 +8073,7 @@

  • -
  • +
  • @@ -7941,7 +8084,7 @@

  • -
  • +
  • @@ -7952,7 +8095,7 @@

  • -
  • +
  • 1 @@ -7963,7 +8106,7 @@

  • -
  • +
  • 1 @@ -7974,7 +8117,7 @@

  • -
  • +
  • 1 @@ -7985,7 +8128,7 @@

  • -
  • +
  • @@ -7996,7 +8139,7 @@

  • -
  • +
  • @@ -8007,7 +8150,7 @@

  • -
  • +
  • @@ -8018,7 +8161,7 @@

  • -
  • +
  • @@ -8029,7 +8172,7 @@

  • -
  • +
  • @@ -8040,7 +8183,7 @@

  • -
  • +
  • @@ -8051,7 +8194,7 @@

  • -
  • +
  • @@ -8062,7 +8205,7 @@

  • -
  • +
  • @@ -8073,7 +8216,7 @@

  • -
  • +
  • @@ -8084,7 +8227,7 @@

  • -
  • +
  • @@ -8095,7 +8238,7 @@

  • -
  • +
  • @@ -8106,7 +8249,7 @@

  • -
  • +
  • @@ -8117,7 +8260,7 @@

  • -
  • +
  • @@ -8128,7 +8271,7 @@

  • -
  • +
  • @@ -8139,7 +8282,7 @@

  • -
  • +
  • @@ -8150,7 +8293,7 @@

  • -
  • +
  • @@ -8161,7 +8304,7 @@

  • -
  • +
  • @@ -8172,7 +8315,7 @@

  • -
  • +
  • @@ -8183,7 +8326,7 @@

  • -
  • +
  • @@ -8194,7 +8337,7 @@

  • -
  • +
  • @@ -8205,7 +8348,7 @@

  • -
  • +
  • 1 @@ -8216,7 +8359,7 @@

  • -
  • +
  • 1 @@ -8227,7 +8370,7 @@

  • -
  • +
  • 1 @@ -8238,7 +8381,7 @@

  • -
  • +
  • @@ -8249,7 +8392,7 @@

  • -
  • +
  • @@ -8260,7 +8403,7 @@

  • -
  • +
  • @@ -8271,7 +8414,7 @@

  • -
  • +
  • @@ -8282,7 +8425,7 @@

  • -
  • +
  • @@ -8293,7 +8436,7 @@

  • -
  • +
  • @@ -8304,7 +8447,7 @@

  • -
  • +
  • @@ -8315,7 +8458,7 @@

  • -
  • +
  • @@ -8326,7 +8469,7 @@

  • -
  • +
  • @@ -8337,7 +8480,7 @@

  • -
  • +
  • @@ -8348,7 +8491,7 @@

  • -
  • +
  • @@ -8359,7 +8502,7 @@

  • -
  • +
  • @@ -8370,7 +8513,7 @@

  • -
  • +
  • @@ -8381,7 +8524,7 @@

  • -
  • +
  • @@ -8392,7 +8535,7 @@

  • -
  • +
  • @@ -8403,7 +8546,7 @@

  • -
  • +
  • @@ -8414,7 +8557,7 @@

  • -
  • +
  • @@ -8425,7 +8568,7 @@

  • -
  • +
  • @@ -8436,7 +8579,7 @@

  • -
  • +
  • @@ -8447,7 +8590,7 @@

  • -
  • +
  • @@ -8458,7 +8601,7 @@

  • -
  • +
  • 1 @@ -8469,7 +8612,7 @@

  • -
  • +
  • 1 @@ -8480,7 +8623,7 @@

  • -
  • +
  • 1 @@ -8491,7 +8634,7 @@

  • -
  • +
  • @@ -8502,7 +8645,7 @@

  • -
  • +
  • @@ -8513,7 +8656,7 @@

  • -
  • +
  • @@ -8524,7 +8667,7 @@

  • -
  • +
  • @@ -8535,7 +8678,7 @@

  • -
  • +
  • @@ -8546,7 +8689,7 @@

  • -
  • +
  • @@ -8557,7 +8700,7 @@

  • -
  • +
  • @@ -8568,7 +8711,7 @@

  • -
  • +
  • @@ -8579,7 +8722,7 @@

  • -
  • +
  • @@ -8590,7 +8733,7 @@

  • -
  • +
  • @@ -8601,7 +8744,7 @@

  • -
  • +
  • @@ -8612,7 +8755,7 @@

  • -
  • +
  • @@ -8623,7 +8766,7 @@

  • -
  • +
  • @@ -8634,7 +8777,7 @@

  • -
  • +
  • 1 @@ -8645,7 +8788,7 @@

  • -
  • +
  • 1 @@ -8656,7 +8799,7 @@

  • -
  • +
  • 1 @@ -8667,7 +8810,7 @@

  • -
  • +
  • @@ -8678,7 +8821,7 @@

  • -
  • +
  • @@ -8689,7 +8832,7 @@

  • -
  • +
  • @@ -8700,7 +8843,7 @@

  • -
  • +
  • @@ -8711,7 +8854,7 @@

  • -
  • +
  • @@ -8722,7 +8865,7 @@

  • -
  • +
  • @@ -8733,7 +8876,7 @@

  • -
  • +
  • @@ -8744,7 +8887,7 @@

  • -
  • +
  • @@ -8755,7 +8898,7 @@

  • -
  • +
  • @@ -8766,7 +8909,7 @@

  • -
  • +
  • @@ -8777,7 +8920,7 @@

  • -
  • +
  • @@ -8788,7 +8931,7 @@

  • -
  • +
  • @@ -8799,7 +8942,7 @@

  • -
  • +
  • @@ -8810,7 +8953,7 @@

  • -
  • +
  • 1 @@ -8821,7 +8964,7 @@

  • -
  • +
  • 1 @@ -8832,7 +8975,7 @@

  • -
  • +
  • 1 @@ -8843,7 +8986,7 @@

  • -
  • +
  • @@ -8854,7 +8997,7 @@

  • -
  • +
  • @@ -8865,7 +9008,7 @@

  • -
  • +
  • @@ -8876,7 +9019,7 @@

  • -
  • +
  • @@ -8887,7 +9030,7 @@

  • -
  • +
  • @@ -8898,7 +9041,7 @@

  • -
  • +
  • @@ -8909,7 +9052,7 @@

  • -
  • +
  • @@ -8920,7 +9063,7 @@

  • -
  • +
  • @@ -8931,7 +9074,7 @@

  • -
  • +
  • @@ -8942,7 +9085,7 @@

  • -
  • +
  • @@ -8953,7 +9096,7 @@

  • -
  • +
  • @@ -8964,7 +9107,7 @@

  • -
  • +
  • @@ -8975,7 +9118,7 @@

  • -
  • +
  • @@ -8986,7 +9129,7 @@

  • -
  • +
  • 1 @@ -8997,7 +9140,7 @@

  • -
  • +
  • 1 @@ -9008,7 +9151,7 @@

  • -
  • +
  • 1 @@ -9019,7 +9162,7 @@

  • -
  • +
  • @@ -9030,7 +9173,7 @@

  • -
  • +
  • @@ -9041,7 +9184,7 @@

  • -
  • +
  • @@ -9052,7 +9195,7 @@

  • -
  • +
  • @@ -9063,7 +9206,7 @@

  • -
  • +
  • @@ -9074,7 +9217,7 @@

  • -
  • +
  • @@ -9085,7 +9228,7 @@

  • -
  • +
  • @@ -9096,7 +9239,7 @@

  • -
  • +
  • @@ -9107,7 +9250,7 @@

  • -
  • +
  • @@ -9118,7 +9261,7 @@

  • -
  • +
  • @@ -9129,7 +9272,7 @@

  • -
  • +
  • @@ -9140,7 +9283,7 @@

  • -
  • +
  • @@ -9151,7 +9294,7 @@

  • -
  • +
  • @@ -9162,7 +9305,7 @@

  • -
  • +
  • 1 @@ -9173,7 +9316,7 @@

  • -
  • +
  • 1 @@ -9184,7 +9327,7 @@

  • -
  • +
  • 1 @@ -9195,7 +9338,7 @@

  • -
  • +
  • @@ -9206,7 +9349,7 @@

  • -
  • +
  • @@ -9217,7 +9360,7 @@

  • -
  • +
  • @@ -9228,7 +9371,7 @@

  • -
  • +
  • @@ -9239,7 +9382,7 @@

  • -
  • +
  • @@ -9250,7 +9393,7 @@

  • -
  • +
  • @@ -9261,7 +9404,7 @@

  • -
  • +
  • @@ -9272,7 +9415,7 @@

  • -
  • +
  • @@ -9283,7 +9426,7 @@

  • -
  • +
  • @@ -9294,7 +9437,7 @@

  • -
  • +
  • @@ -9305,7 +9448,7 @@

  • -
  • +
  • @@ -9316,7 +9459,7 @@

  • -
  • +
  • @@ -9327,7 +9470,7 @@

  • -
  • +
  • 1 @@ -9338,7 +9481,7 @@

  • -
  • +
  • 1 @@ -9349,7 +9492,7 @@

  • -
  • +
  • 1 @@ -9360,7 +9503,7 @@

  • -
  • +
  • @@ -9371,7 +9514,7 @@

  • -
  • +
  • @@ -9382,7 +9525,7 @@

  • -
  • +
  • @@ -9393,7 +9536,7 @@

  • -
  • +
  • @@ -9404,7 +9547,7 @@

  • -
  • +
  • @@ -9415,7 +9558,7 @@

  • -
  • +
  • @@ -9426,7 +9569,7 @@

  • -
  • +
  • @@ -9437,7 +9580,7 @@

  • -
  • +
  • @@ -9448,7 +9591,7 @@

  • -
  • +
  • @@ -9459,7 +9602,7 @@

  • -
  • +
  • @@ -9470,7 +9613,7 @@

  • -
  • +
  • @@ -9481,7 +9624,7 @@

  • -
  • +
  • @@ -9492,7 +9635,7 @@

  • -
  • +
  • 1 @@ -9503,7 +9646,7 @@

  • -
  • +
  • 2 @@ -9514,7 +9657,7 @@

  • -
  • +
  • 2 @@ -9525,7 +9668,7 @@

  • -
  • +
  • @@ -9536,7 +9679,7 @@

  • -
  • +
  • @@ -9547,7 +9690,7 @@

  • -
  • +
  • @@ -9558,7 +9701,7 @@

  • -
  • +
  • @@ -9569,7 +9712,7 @@

  • -
  • +
  • @@ -9580,7 +9723,7 @@

  • -
  • +
  • @@ -9591,7 +9734,7 @@

  • -
  • +
  • @@ -9602,7 +9745,7 @@

  • -
  • +
  • @@ -9613,7 +9756,7 @@

  • -
  • +
  • @@ -9624,7 +9767,7 @@

  • -
  • +
  • @@ -9635,7 +9778,7 @@

  • -
  • +
  • @@ -9646,7 +9789,7 @@

  • -
  • +
  • @@ -9657,7 +9800,7 @@

  • -
  • +
  • 1 @@ -9668,7 +9811,7 @@

  • -
  • +
  • 2 @@ -9679,7 +9822,7 @@

  • -
  • +
  • 2 @@ -9690,7 +9833,7 @@

  • -
  • +
  • @@ -9701,7 +9844,7 @@

  • -
  • +
  • @@ -9712,7 +9855,7 @@

  • -
  • +
  • @@ -9723,7 +9866,7 @@

  • -
  • +
  • @@ -9734,7 +9877,7 @@

  • -
  • +
  • @@ -9745,7 +9888,7 @@

  • -
  • +
  • @@ -9756,7 +9899,7 @@

  • -
  • +
  • @@ -9767,7 +9910,7 @@

  • -
  • +
  • @@ -9778,7 +9921,7 @@

  • -
  • +
  • @@ -9789,7 +9932,7 @@

  • -
  • +
  • @@ -9800,7 +9943,7 @@

  • -
  • +
  • @@ -9811,7 +9954,7 @@

  • -
  • +
  • 1 @@ -9822,7 +9965,7 @@

  • -
  • +
  • 1 @@ -9833,7 +9976,7 @@

  • -
  • +
  • 1 @@ -9844,7 +9987,7 @@

  • -
  • +
  • @@ -9855,7 +9998,7 @@

  • -
  • +
  • @@ -9866,7 +10009,7 @@

  • -
  • +
  • @@ -9877,7 +10020,7 @@

  • -
  • +
  • @@ -9888,7 +10031,7 @@

  • -
  • +
  • @@ -9899,7 +10042,7 @@

  • -
  • +
  • @@ -9910,7 +10053,7 @@

  • -
  • +
  • @@ -9921,7 +10064,7 @@

  • -
  • +
  • @@ -9932,7 +10075,7 @@

  • -
  • +
  • @@ -9943,7 +10086,7 @@

  • -
  • +
  • @@ -9954,7 +10097,7 @@

  • -
  • +
  • @@ -9965,7 +10108,7 @@

  • -
  • +
  • 1 @@ -9976,7 +10119,7 @@

  • -
  • +
  • 1 @@ -9987,7 +10130,7 @@

  • -
  • +
  • 1 @@ -9998,7 +10141,7 @@

  • -
  • +
  • @@ -10009,7 +10152,7 @@

  • -
  • +
  • @@ -10020,7 +10163,7 @@

  • -
  • +
  • @@ -10031,7 +10174,7 @@

  • -
  • +
  • @@ -10042,7 +10185,7 @@

  • -
  • +
  • @@ -10053,7 +10196,7 @@

  • -
  • +
  • @@ -10064,7 +10207,7 @@

  • -
  • +
  • @@ -10075,7 +10218,7 @@

  • -
  • +
  • @@ -10086,7 +10229,7 @@

  • -
  • +
  • @@ -10097,7 +10240,7 @@

  • -
  • +
  • @@ -10108,7 +10251,7 @@

  • -
  • +
  • @@ -10119,7 +10262,7 @@

  • -
  • +
  • 1 @@ -10130,7 +10273,7 @@

  • -
  • +
  • 1 @@ -10141,7 +10284,7 @@

  • -
  • +
  • 1 @@ -10152,7 +10295,7 @@

  • -
  • +
  • @@ -10163,7 +10306,7 @@

  • -
  • +
  • @@ -10174,7 +10317,7 @@

  • -
  • +
  • @@ -10185,7 +10328,7 @@

  • -
  • +
  • @@ -10196,7 +10339,7 @@

  • -
  • +
  • @@ -10207,7 +10350,7 @@

  • -
  • +
  • @@ -10218,7 +10361,7 @@

  • -
  • +
  • @@ -10229,7 +10372,7 @@

  • -
  • +
  • @@ -10240,7 +10383,7 @@

  • -
  • +
  • @@ -10251,7 +10394,7 @@

  • -
  • +
  • 1 @@ -10262,7 +10405,7 @@

  • -
  • +
  • 1 @@ -10273,7 +10416,7 @@

  • -
  • +
  • 1 @@ -10284,7 +10427,7 @@

  • -
  • +
  • @@ -10295,7 +10438,7 @@

  • -
  • +
  • @@ -10306,7 +10449,7 @@

  • -
  • +
  • @@ -10317,7 +10460,7 @@

  • -
  • +
  • @@ -10328,7 +10471,7 @@

  • -
  • +
  • @@ -10339,7 +10482,7 @@

  • -
  • +
  • @@ -10350,7 +10493,7 @@

  • -
  • +
  • @@ -10361,7 +10504,7 @@

  • -
  • +
  • @@ -10372,7 +10515,7 @@

  • -
  • +
  • @@ -10383,7 +10526,7 @@

  • -
  • +
  • 1 @@ -10394,7 +10537,7 @@

  • -
  • +
  • 8 @@ -10405,7 +10548,7 @@

  • -
  • +
  • 8 @@ -10416,7 +10559,7 @@

  • -
  • +
  • @@ -10427,7 +10570,7 @@

  • -
  • +
  • @@ -10438,7 +10581,7 @@

  • -
  • +
  • @@ -10449,7 +10592,7 @@

  • -
  • +
  • @@ -10460,7 +10603,7 @@

  • -
  • +
  • @@ -10471,7 +10614,7 @@

  • -
  • +
  • @@ -10482,7 +10625,7 @@

  • -
  • +
  • @@ -10493,7 +10636,7 @@

  • -
  • +
  • @@ -10504,7 +10647,7 @@

  • -
  • +
  • @@ -10515,7 +10658,7 @@

  • -
  • +
  • @@ -10526,7 +10669,7 @@

  • -
  • +
  • @@ -10537,7 +10680,7 @@

  • -
  • +
  • @@ -10548,7 +10691,7 @@

  • -
  • +
  • 1 @@ -10559,7 +10702,7 @@

  • -
  • +
  • 1 @@ -10570,7 +10713,7 @@

  • -
  • +
  • 1 @@ -10581,7 +10724,7 @@

  • -
  • +
  • 1 @@ -10592,7 +10735,7 @@

  • -
  • +
  • @@ -10603,7 +10746,7 @@

  • -
  • +
  • @@ -10614,7 +10757,7 @@

  • -
  • +
  • @@ -10625,7 +10768,7 @@

  • -
  • +
  • @@ -10636,7 +10779,7 @@

  • -
  • +
  • @@ -10647,7 +10790,7 @@

  • -
  • +
  • @@ -10658,7 +10801,7 @@

  • -
  • +
  • @@ -10669,7 +10812,7 @@

  • -
  • +
  • @@ -10680,7 +10823,7 @@

  • -
  • +
  • @@ -10691,7 +10834,7 @@

  • -
  • +
  • @@ -10702,7 +10845,7 @@

  • -
  • +
  • @@ -10713,7 +10856,7 @@

  • -
  • +
  • @@ -10724,7 +10867,7 @@

  • -
  • +
  • 1 @@ -10735,7 +10878,7 @@

  • -
  • +
  • 1 @@ -10746,7 +10889,7 @@

  • -
  • +
  • 1 @@ -10757,7 +10900,7 @@

  • -
  • +
  • 1 @@ -10768,7 +10911,7 @@

  • -
  • +
  • @@ -10779,7 +10922,7 @@

  • -
  • +
  • @@ -10790,7 +10933,7 @@

  • -
  • +
  • @@ -10801,7 +10944,7 @@

  • -
  • +
  • @@ -10812,7 +10955,7 @@

  • -
  • +
  • @@ -10823,7 +10966,7 @@

  • -
  • +
  • @@ -10834,7 +10977,7 @@

  • -
  • +
  • @@ -10845,7 +10988,7 @@

  • -
  • +
  • @@ -10856,7 +10999,7 @@

  • -
  • +
  • @@ -10867,7 +11010,7 @@

  • -
  • +
  • @@ -10878,7 +11021,7 @@

  • -
  • +
  • @@ -10889,7 +11032,7 @@

  • -
  • +
  • 1 @@ -10900,7 +11043,7 @@

  • -
  • +
  • 1 @@ -10911,7 +11054,7 @@

  • -
  • +
  • 1 @@ -10922,7 +11065,7 @@

  • -
  • +
  • @@ -10933,7 +11076,7 @@

  • -
  • +
  • @@ -10944,7 +11087,7 @@

  • -
  • +
  • @@ -10955,7 +11098,7 @@

  • -
  • +
  • @@ -10966,7 +11109,7 @@

  • -
  • +
  • @@ -10977,7 +11120,7 @@

  • -
  • +
  • @@ -10988,7 +11131,7 @@

  • -
  • +
  • @@ -10999,7 +11142,7 @@

  • -
  • +
  • @@ -11010,7 +11153,7 @@

  • -
  • +
  • @@ -11021,7 +11164,7 @@

  • -
  • +
  • @@ -11032,7 +11175,7 @@

  • -
  • +
  • @@ -11043,7 +11186,7 @@

  • -
  • +
  • @@ -11054,7 +11197,7 @@

  • -
  • +
  • @@ -11065,7 +11208,7 @@

  • -
  • +
  • @@ -11076,7 +11219,7 @@

  • -
  • +
  • @@ -11087,7 +11230,7 @@

  • -
  • +
  • @@ -11098,7 +11241,7 @@

  • -
  • +
  • @@ -11109,7 +11252,7 @@

  • -
  • +
  • @@ -11120,7 +11263,7 @@

  • -
  • +
  • 1 @@ -11131,7 +11274,7 @@

  • -
  • +
  • 3 @@ -11142,7 +11285,7 @@

  • -
  • +
  • 3 @@ -11153,7 +11296,7 @@

  • -
  • +
  • 1 @@ -11164,7 +11307,7 @@

  • -
  • +
  • 1 @@ -11175,7 +11318,7 @@

  • -
  • +
  • @@ -11186,7 +11329,7 @@

  • -
  • +
  • 2 @@ -11197,7 +11340,7 @@

  • -
  • +
  • 2 @@ -11208,7 +11351,7 @@

  • -
  • +
  • @@ -11219,7 +11362,7 @@

  • -
  • +
  • @@ -11230,7 +11373,7 @@

  • -
  • +
  • 3 @@ -11241,7 +11384,7 @@

  • -
  • +
  • 3 @@ -11252,7 +11395,7 @@

  • -
  • +
  • @@ -11263,7 +11406,7 @@

  • -
  • +
  • @@ -11274,7 +11417,7 @@

  • -
  • +
  • @@ -11285,7 +11428,7 @@

  • -
  • +
  • @@ -11296,7 +11439,7 @@

  • -
  • +
  • @@ -11307,7 +11450,7 @@

  • -
  • +
  • @@ -11318,7 +11461,7 @@

  • -
  • +
  • @@ -11329,7 +11472,7 @@

  • -
  • +
  • @@ -11340,7 +11483,7 @@

  • -
  • +
  • @@ -11351,7 +11494,7 @@

  • -
  • +
  • @@ -11362,7 +11505,7 @@

  • -
  • +
  • @@ -11373,7 +11516,7 @@

  • -
  • +
  • @@ -11384,7 +11527,7 @@

  • -
  • +
  • @@ -11395,7 +11538,7 @@

  • -
  • +
  • @@ -11406,7 +11549,7 @@

  • -
  • +
  • @@ -11417,7 +11560,7 @@

  • -
  • +
  • @@ -11428,7 +11571,7 @@

  • -
  • +
  • @@ -11439,7 +11582,7 @@

  • -
  • +
  • @@ -11450,7 +11593,7 @@

  • -
  • +
  • 1 @@ -11461,7 +11604,7 @@

  • -
  • +
  • 3 @@ -11472,7 +11615,7 @@

  • -
  • +
  • 3 @@ -11483,7 +11626,7 @@

  • -
  • +
  • 1 @@ -11494,7 +11637,7 @@

  • -
  • +
  • 1 @@ -11505,7 +11648,7 @@

  • -
  • +
  • @@ -11516,7 +11659,7 @@

  • -
  • +
  • 2 @@ -11527,7 +11670,7 @@

  • -
  • +
  • 2 @@ -11538,7 +11681,7 @@

  • -
  • +
  • @@ -11549,7 +11692,7 @@

  • -
  • +
  • @@ -11560,7 +11703,7 @@

  • -
  • +
  • 3 @@ -11571,7 +11714,7 @@

  • -
  • +
  • 3 @@ -11582,7 +11725,7 @@

  • -
  • +
  • @@ -11593,7 +11736,7 @@

  • -
  • +
  • @@ -11604,7 +11747,7 @@

  • -
  • +
  • @@ -11615,7 +11758,7 @@

  • -
  • +
  • @@ -11626,7 +11769,7 @@

  • -
  • +
  • @@ -11637,7 +11780,7 @@

  • -
  • +
  • @@ -11648,7 +11791,7 @@

  • -
  • +
  • @@ -11659,7 +11802,7 @@

  • -
  • +
  • @@ -11670,7 +11813,7 @@

  • -
  • +
  • @@ -11681,7 +11824,7 @@

  • -
  • +
  • @@ -11692,7 +11835,7 @@

  • -
  • +
  • @@ -11703,7 +11846,7 @@

  • -
  • +
  • @@ -11714,7 +11857,7 @@

  • -
  • +
  • @@ -11725,7 +11868,7 @@

  • -
  • +
  • @@ -11736,7 +11879,7 @@

  • -
  • +
  • @@ -11747,7 +11890,7 @@

  • -
  • +
  • @@ -11758,7 +11901,7 @@

  • -
  • +
  • @@ -11769,7 +11912,7 @@

  • -
  • +
  • 1 @@ -11780,7 +11923,7 @@

  • -
  • +
  • 3 @@ -11791,7 +11934,7 @@

  • -
  • +
  • @@ -11802,7 +11945,7 @@

  • -
  • +
  • @@ -11813,7 +11956,7 @@

  • -
  • +
  • @@ -11824,7 +11967,7 @@

  • -
  • +
  • @@ -11835,7 +11978,7 @@

  • -
  • +
  • @@ -11846,7 +11989,7 @@

  • -
  • +
  • @@ -11857,7 +12000,7 @@

  • -
  • +
  • @@ -11868,7 +12011,7 @@

  • -
  • +
  • @@ -11879,7 +12022,7 @@

  • -
  • +
  • @@ -11890,7 +12033,7 @@

  • -
  • +
  • @@ -11901,7 +12044,7 @@

  • -
  • +
  • 1 @@ -11912,7 +12055,7 @@

  • -
  • +
  • 1 @@ -11923,7 +12066,7 @@

  • -
  • +
  • 1 @@ -11934,7 +12077,7 @@

  • -
  • +
  • @@ -11945,7 +12088,7 @@

  • -
  • +
  • @@ -11956,7 +12099,7 @@

  • -
  • +
  • @@ -11967,7 +12110,7 @@

  • -
  • +
  • @@ -11978,7 +12121,7 @@

  • -
  • +
  • @@ -11989,7 +12132,7 @@

  • -
  • +
  • @@ -12000,7 +12143,7 @@

  • -
  • +
  • @@ -12011,7 +12154,7 @@

  • -
  • +
  • @@ -12022,7 +12165,7 @@

  • -
  • +
  • @@ -12033,7 +12176,7 @@

  • -
  • +
  • @@ -12044,7 +12187,7 @@

  • -
  • +
  • 1 @@ -12055,7 +12198,7 @@

  • -
  • +
  • 1 @@ -12066,7 +12209,7 @@

  • -
  • +
  • 1 @@ -12077,7 +12220,7 @@

  • -
  • +
  • @@ -12088,7 +12231,7 @@

  • -
  • +
  • @@ -12099,7 +12242,7 @@

  • -
  • +
  • @@ -12110,7 +12253,7 @@

  • -
  • +
  • @@ -12121,7 +12264,7 @@

  • -
  • +
  • @@ -12132,7 +12275,7 @@

  • -
  • +
  • @@ -12143,7 +12286,7 @@

  • -
  • +
  • @@ -12154,7 +12297,7 @@

  • -
  • +
  • @@ -12165,7 +12308,7 @@

  • -
  • +
  • @@ -12176,7 +12319,7 @@

  • -
  • +
  • @@ -12187,7 +12330,7 @@

  • -
  • +
  • 1 @@ -12198,7 +12341,7 @@

  • -
  • +
  • 1 @@ -12209,7 +12352,7 @@

  • -
  • +
  • 1 @@ -12220,7 +12363,7 @@

  • -
  • +
  • @@ -12231,7 +12374,7 @@

  • -
  • +
  • @@ -12242,7 +12385,7 @@

  • -
  • +
  • @@ -12253,7 +12396,7 @@

  • -
  • +
  • @@ -12264,7 +12407,7 @@

  • -
  • +
  • @@ -12275,7 +12418,7 @@

  • -
  • +
  • @@ -12286,7 +12429,7 @@

  • -
  • +
  • @@ -12297,7 +12440,7 @@

  • -
  • +
  • @@ -12308,7 +12451,7 @@

  • -
  • +
  • @@ -12319,7 +12462,7 @@

  • -
  • +
  • @@ -12330,7 +12473,7 @@

  • -
  • +
  • @@ -12341,7 +12484,7 @@

  • -
  • +
  • 1 @@ -12352,7 +12495,7 @@

  • -
  • +
  • 1 @@ -12363,7 +12506,7 @@

  • -
  • +
  • 1 @@ -12374,7 +12517,7 @@

  • -
  • +
  • @@ -12385,7 +12528,7 @@

  • -
  • +
  • @@ -12396,7 +12539,7 @@

  • -
  • +
  • @@ -12407,7 +12550,7 @@

  • -
  • +
  • @@ -12418,7 +12561,7 @@

  • -
  • +
  • @@ -12429,7 +12572,7 @@

  • -
  • +
  • @@ -12440,7 +12583,7 @@

  • -
  • +
  • @@ -12451,7 +12594,7 @@

  • -
  • +
  • @@ -12462,7 +12605,7 @@

  • -
  • +
  • @@ -12473,7 +12616,7 @@

  • -
  • +
  • @@ -12484,7 +12627,7 @@

  • -
  • +
  • 1 @@ -12495,7 +12638,7 @@

  • -
  • +
  • @@ -12506,7 +12649,7 @@

  • -
  • +
  • @@ -12517,7 +12660,7 @@

  • -
  • +
  • @@ -12528,7 +12671,7 @@

  • -
  • +
  • @@ -12539,7 +12682,7 @@

  • -
  • +
  • @@ -12550,7 +12693,7 @@

  • -
  • +
  • @@ -12561,7 +12704,7 @@

  • -
  • +
  • @@ -12572,7 +12715,7 @@

  • -
  • +
  • @@ -12583,7 +12726,7 @@

  • -
  • +
  • @@ -12594,7 +12737,7 @@

  • -
  • +
  • @@ -12605,7 +12748,7 @@

  • -
  • +
  • @@ -12616,7 +12759,7 @@

  • -
  • +
  • @@ -12627,7 +12770,7 @@

  • -
  • +
  • 1 @@ -12638,7 +12781,7 @@

  • -
  • +
  • 1 @@ -12649,7 +12792,7 @@

  • -
  • +
  • 1 @@ -12660,7 +12803,7 @@

  • -
  • +
  • @@ -12671,7 +12814,7 @@

  • -
  • +
  • @@ -12682,7 +12825,7 @@

  • -
  • +
  • @@ -12693,7 +12836,7 @@

  • -
  • +
  • @@ -12704,7 +12847,7 @@

  • -
  • +
  • @@ -12715,7 +12858,7 @@

  • -
  • +
  • 1 @@ -12726,7 +12869,7 @@

  • -
  • +
  • 3 @@ -12737,7 +12880,7 @@

  • -
  • +
  • 3 @@ -12748,7 +12891,7 @@

  • -
  • +
  • 3 @@ -12759,7 +12902,7 @@

  • -
  • +
  • 3 @@ -12770,7 +12913,7 @@

  • -
  • +
  • @@ -12781,7 +12924,7 @@

  • -
  • +
  • @@ -12792,7 +12935,7 @@

  • -
  • +
  • @@ -12803,7 +12946,7 @@

  • -
  • +
  • @@ -12814,7 +12957,7 @@

  • -
  • +
  • @@ -12825,7 +12968,7 @@

  • -
  • +
  • @@ -12836,7 +12979,7 @@

  • -
  • +
  • @@ -12847,7 +12990,7 @@

  • -
  • +
  • @@ -12858,7 +13001,7 @@

  • -
  • +
  • @@ -12869,7 +13012,7 @@

  • -
  • +
  • @@ -12880,7 +13023,7 @@

  • -
  • +
  • @@ -12891,7 +13034,7 @@

  • -
  • +
  • @@ -12902,7 +13045,7 @@

  • -
  • +
  • 1 @@ -12913,7 +13056,7 @@

  • -
  • +
  • 1 @@ -12924,7 +13067,7 @@

  • -
  • +
  • 1 @@ -12935,7 +13078,7 @@

  • -
  • +
  • @@ -12946,7 +13089,7 @@

  • -
  • +
  • @@ -12957,7 +13100,7 @@

  • -
  • +
  • @@ -12968,7 +13111,7 @@

  • -
  • +
  • @@ -12979,7 +13122,7 @@

  • -
  • +
  • @@ -12990,7 +13133,7 @@

  • -
  • +
  • @@ -13001,7 +13144,7 @@

  • -
  • +
  • @@ -13012,7 +13155,7 @@

  • -
  • +
  • @@ -13023,7 +13166,7 @@

  • -
  • +
  • @@ -13034,7 +13177,7 @@

  • -
  • +
  • @@ -13045,7 +13188,7 @@

  • -
  • +
  • @@ -13056,7 +13199,7 @@

  • -
  • +
  • @@ -13067,7 +13210,7 @@

  • -
  • +
  • 1 @@ -13078,7 +13221,7 @@

  • -
  • +
  • 48 @@ -13089,7 +13232,7 @@

  • -
  • +
  • 48 @@ -13100,7 +13243,7 @@

  • -
  • +
  • @@ -13111,7 +13254,7 @@

  • -
  • +
  • @@ -13122,7 +13265,7 @@

  • -
  • +
  • @@ -13133,7 +13276,7 @@

  • -
  • +
  • @@ -13144,7 +13287,7 @@

  • -
  • +
  • @@ -13155,7 +13298,7 @@

  • -
  • +
  • @@ -13166,7 +13309,7 @@

  • -
  • +
  • @@ -13177,7 +13320,7 @@

  • -
  • +
  • @@ -13188,7 +13331,7 @@

  • -
  • +
  • @@ -13199,7 +13342,7 @@

  • -
  • +
  • @@ -13210,7 +13353,7 @@

  • -
  • +
  • @@ -13221,7 +13364,7 @@

  • -
  • +
  • 1 @@ -13232,7 +13375,7 @@

  • -
  • +
  • @@ -13243,7 +13386,7 @@

  • -
  • +
  • @@ -13254,7 +13397,7 @@

  • -
  • +
  • @@ -13265,7 +13408,7 @@

  • -
  • +
  • @@ -13276,7 +13419,7 @@

  • -
  • +
  • 1 @@ -13287,7 +13430,7 @@

  • -
  • +
  • 1 @@ -13298,7 +13441,7 @@

  • -
  • +
  • 1 @@ -13309,7 +13452,7 @@

  • -
  • +
  • @@ -13320,7 +13463,7 @@

  • -
  • +
  • 1 @@ -13331,7 +13474,7 @@

  • -
  • +
  • 1 @@ -13342,7 +13485,7 @@

  • -
  • +
  • 19 @@ -13353,7 +13496,7 @@

  • -
  • +
  • 19 @@ -13364,7 +13507,7 @@

  • -
  • +
  • 19 @@ -13375,7 +13518,7 @@

  • -
  • +
  • 19 @@ -13386,7 +13529,7 @@

  • -
  • +
  • @@ -13397,7 +13540,7 @@

  • -
  • +
  • @@ -13408,7 +13551,7 @@

  • -
  • +
  • 1 @@ -13419,7 +13562,7 @@

  • -
  • +
  • 2 @@ -13430,7 +13573,7 @@

  • -
  • +
  • 2 @@ -13441,7 +13584,7 @@

  • -
  • +
  • 2 @@ -13452,7 +13595,7 @@

  • -
  • +
  • @@ -13463,7 +13606,7 @@

  • -
  • +
  • @@ -13474,7 +13617,7 @@

  • -
  • +
  • @@ -13485,7 +13628,7 @@

  • -
  • +
  • 2 @@ -13496,7 +13639,7 @@

  • -
  • +
  • 2 @@ -13507,7 +13650,7 @@

  • -
  • +
  • 4 @@ -13518,7 +13661,7 @@

  • -
  • +
  • 4 @@ -13529,7 +13672,7 @@

  • -
  • +
  • 4 @@ -13540,7 +13683,7 @@

  • -
  • +
  • @@ -13551,7 +13694,7 @@

  • -
  • +
  • @@ -13562,7 +13705,7 @@

  • -
  • +
  • @@ -13573,7 +13716,7 @@

  • -
  • +
  • @@ -13584,7 +13727,7 @@

  • -
  • +
  • 2 @@ -13595,7 +13738,7 @@

  • -
  • +
  • @@ -13606,7 +13749,7 @@

  • -
  • +
  • @@ -13617,7 +13760,7 @@

  • -
  • +
  • @@ -14134,7 +14277,7 @@

    - VERSION = "0.4.1" + VERSION = "0.4.3"

  • @@ -14159,7 +14302,7 @@

    lib/util.rb

    - 87.5% + 87.93% lines covered @@ -14168,8 +14311,8 @@

    - 56 relevant lines. - 49 lines covered and + 58 relevant lines. + 51 lines covered and 7 lines missed.
    @@ -14187,7 +14330,7 @@

    - class Hash + module Contentstack @@ -14198,1156 +14341,1200 @@

    - def to_query(namespace = nil) + module Utility + + + +
    +
  • + 1 + + + + + refine Hash do +
  • +
    + +
    +
  • + 1 + + + + + def to_query(namespace = nil)
  • -
  • +
  • 93 - collect do |key, value| + collect do |key, value|
  • -
  • +
  • 365 - value.to_query(namespace ? "#{namespace}[#{key}]" : key) + value.to_query(namespace ? "#{namespace}[#{key}]" : key)
  • -
  • +
  • - end.sort * '&' + end.sort * '&'
  • -
  • +
  • - end + end
  • -
  • +
  • - +
  • -
  • +
  • 1 - def symbolize_keys + def symbolize_keys
  • -
  • +
  • 3628 - new_hash = {} + new_hash = {}
  • -
  • +
  • 3628 - self.each do |key,value| + self.each do |key,value|
  • -
  • +
  • 18741 - if [Hash, Array].include?(value.class) + if [Hash, Array].include?(value.class)
  • -
  • +
  • 3709 - new_hash[key.to_sym] = value.symbolize_keys + new_hash[key.to_sym] = value.symbolize_keys
  • -
  • +
  • - else + else
  • -
  • +
  • 15032 - new_hash[key.to_sym] = value + new_hash[key.to_sym] = value
  • -
  • +
  • - end + end
  • -
  • +
  • - end + end
  • -
  • +
  • 3628 - new_hash + new_hash
  • -
  • +
  • - end + end
  • -
  • +
  • - end + end
  • -
  • +
  • - +
  • -
  • +
  • 1 - class Array + refine Array do
  • -
  • +
  • 1 - def to_query(key) + def to_query(key)
  • -
  • +
  • 19 - prefix = "#{key}[]" + prefix = "#{key}[]"
  • -
  • +
  • 40 - collect { |value| value.to_query(prefix) }.join '&' + collect { |value| value.to_query(prefix) }.join '&'
  • -
  • +
  • - end + end
  • -
  • +
  • - +
  • -
  • +
  • 1 - def symbolize_keys + def symbolize_keys
  • -
  • +
  • 1487 - collect do |entry| + collect do |entry|
  • -
  • +
  • 1197 - if entry.class == Hash + if entry.class == Hash
  • -
  • +
  • 958 - entry.symbolize_keys + entry.symbolize_keys
  • -
  • +
  • - else + else
  • -
  • +
  • 239 - entry + entry
  • -
  • +
  • - end + end
  • -
  • +
  • - end + end
  • -
  • +
  • - end + end
  • -
  • +
  • - end + end
  • -
  • +
  • - +
  • -
  • +
  • 1 - class String + refine String do
  • -
  • +
  • 1 - def to_query(key) + def to_query(key)
  • -
  • +
  • 201 - require 'cgi' unless defined?(CGI) && defined?(CGI::escape) + require 'cgi' unless defined?(CGI) && defined?(CGI::escape)
  • -
  • +
  • 201 - "#{CGI.escape(key.to_param)}=#{CGI.escape(to_param.to_s)}" + "#{CGI.escape(key.to_param)}=#{CGI.escape(to_param.to_s)}"
  • -
  • +
  • - end + end
  • -
  • +
  • - +
  • -
  • +
  • 1 - def to_param + def to_param
  • -
  • +
  • 222 - to_s + to_s
  • -
  • +
  • - end + end
  • -
  • +
  • - end + end
  • -
  • +
  • - +
  • -
  • +
  • 1 - class Symbol + refine Symbol do
  • -
  • +
  • 1 - def to_query(key) + def to_query(key)
  • -
  • +
  • - to_s.to_query(key) + to_s.to_query(key)
  • -
  • +
  • - end + end
  • -
  • +
  • - +
  • -
  • +
  • 1 - def to_param + def to_param
  • -
  • +
  • 335 - to_s + to_s
  • -
  • +
  • - end + end
  • -
  • +
  • - end + end
  • -
  • +
  • - +
  • -
  • +
  • 1 - class NilClass + refine NilClass do
  • -
  • +
  • 1 - def to_query(key) + def to_query(key)
  • -
  • +
  • 80 - to_s.to_query(key) + to_s.to_query(key)
  • -
  • +
  • - end + end
  • -
  • +
  • - +
  • -
  • +
  • 1 - def to_param + def to_param
  • -
  • +
  • - to_s + to_s
  • -
  • +
  • - end + end
  • -
  • +
  • - end + end
  • -
  • +
  • - +
  • -
  • +
  • 1 - class TrueClass + refine TrueClass do
  • -
  • +
  • 1 - def to_query(key) + def to_query(key)
  • -
  • +
  • - to_s.to_query(key) + to_s.to_query(key)
  • -
  • +
  • - end + end
  • -
  • +
  • - +
  • -
  • +
  • 1 - def to_query(val) + def to_query(val)
  • -
  • +
  • 18 - "#{CGI.escape(val.to_param)}=#{CGI.escape(to_s)}" + "#{CGI.escape(val.to_param)}=#{CGI.escape(to_s)}"
  • -
  • +
  • - end + end
  • -
  • +
  • - end + end
  • -
  • +
  • - +
  • -
  • +
  • 1 - class FalseClass + refine FalseClass do
  • -
  • +
  • 1 - def to_query(key) + def to_query(key)
  • -
  • +
  • - to_s.to_query(key) + to_s.to_query(key)
  • -
  • +
  • - end + end
  • -
  • +
  • - +
  • -
  • +
  • 1 - def to_query(val) + def to_query(val)
  • -
  • +
  • 40 - "#{CGI.escape(val.to_param)}=#{CGI.escape(to_s)}" + "#{CGI.escape(val.to_param)}=#{CGI.escape(to_s)}"
  • -
  • +
  • - end + end
  • -
  • +
  • - end + end
  • -
  • +
  • - +
  • -
  • +
  • 1 - class Integer + refine Integer do
  • -
  • +
  • 1 - def to_query(key) + def to_query(key)
  • -
  • +
  • - to_s.to_query(key) + to_s.to_query(key)
  • -
  • +
  • - end + end
  • -
  • +
  • - +
  • -
  • +
  • 1 - def to_query(val) + def to_query(val)
  • -
  • +
  • 97 - "#{CGI.escape(val.to_param)}=#{CGI.escape(to_s)}" + "#{CGI.escape(val.to_param)}=#{CGI.escape(to_s)}"
  • -
  • +
  • - end + end
  • -
  • +
  • - end + end
  • -
  • +
  • - +
  • -
  • +
  • 1 - class Numeric + refine Numeric do
  • -
  • +
  • 1 - def to_query(key) + def to_query(key)
  • -
  • +
  • - to_s.to_query(key) + to_s.to_query(key)
  • -
  • +
  • - end + end
  • -
  • +
  • - +
  • -
  • +
  • 1 - def to_query(val) + def to_query(val)
  • -
  • +
  • - "#{CGI.escape(val.to_param)}=#{CGI.escape(to_s)}" + "#{CGI.escape(val.to_param)}=#{CGI.escape(to_s)}"
  • -
  • +
  • - end + end
  • -
  • +
  • + + + + + + end +
  • +
    + +
    +
  • + + + + + + end +
  • +
    + +
    +
  • diff --git a/lib/contentstack.rb b/lib/contentstack.rb index 0cf7ded..aa12b63 100644 --- a/lib/contentstack.rb +++ b/lib/contentstack.rb @@ -4,8 +4,6 @@ require "contentstack/client" require "contentstack/region" require "contentstack_utils" -require "util" - # == Contentstack - Ruby SDK # Contentstack is a content management system that facilitates the process of publication by separating the content from site-related programming and design. diff --git a/lib/contentstack/api.rb b/lib/contentstack/api.rb index c6b3a19..7c2c14e 100644 --- a/lib/contentstack/api.rb +++ b/lib/contentstack/api.rb @@ -3,9 +3,10 @@ require 'active_support' require 'active_support/json' require 'open-uri' - +require 'util' module Contentstack class API + using Utility def self.init_api(api_key, delivery_token, environment,host) @host = host @api_version = '/v3' diff --git a/lib/contentstack/asset.rb b/lib/contentstack/asset.rb index 322ef3b..250ad91 100644 --- a/lib/contentstack/asset.rb +++ b/lib/contentstack/asset.rb @@ -1,7 +1,9 @@ +require 'util' module Contentstack # Asset class to fetch file details on Conentstack server. class Asset + using Utility attr_reader :uid, :content_type, :filename, :file_size, :tags, :url # @!attribute [r] uid diff --git a/lib/contentstack/asset_collection.rb b/lib/contentstack/asset_collection.rb index bc695db..72d05a2 100644 --- a/lib/contentstack/asset_collection.rb +++ b/lib/contentstack/asset_collection.rb @@ -1,8 +1,10 @@ require 'contentstack/asset' +require 'util' module Contentstack # Asset class to fetch details of files on Conentstack server. class AssetCollection + using Utility attr_reader :assets def initialize(assets_array=nil) diff --git a/lib/contentstack/client.rb b/lib/contentstack/client.rb index a8737d5..cfe5265 100644 --- a/lib/contentstack/client.rb +++ b/lib/contentstack/client.rb @@ -2,8 +2,10 @@ require 'contentstack/content_type' require 'contentstack/asset_collection' require 'contentstack/sync_result' +require 'util' module Contentstack class Client + using Utility attr_reader :region, :host # Initialize "Contentstack" Client instance def initialize(api_key, delivery_token, environment, options={}) diff --git a/lib/contentstack/content_type.rb b/lib/contentstack/content_type.rb index 28dea62..a5e53b2 100644 --- a/lib/contentstack/content_type.rb +++ b/lib/contentstack/content_type.rb @@ -1,7 +1,9 @@ require 'contentstack/query' +require 'util' module Contentstack class ContentType + using Utility [:title, :uid, :created_at, :updated_at, :attributes].each do |method_name| if [:created_at, :updated_at].include?(method_name) define_method method_name do diff --git a/lib/contentstack/entry.rb b/lib/contentstack/entry.rb index 8d78f16..32bd342 100644 --- a/lib/contentstack/entry.rb +++ b/lib/contentstack/entry.rb @@ -1,7 +1,9 @@ require 'active_support/core_ext' +require 'util' module Contentstack class Entry + using Utility attr_reader :fields, :content_type, :uid, :owner, :query, :schema, :content_type def initialize(attrs, content_type_uid=nil) setup(attrs, content_type_uid) diff --git a/lib/contentstack/entry_collection.rb b/lib/contentstack/entry_collection.rb index c53a825..a715682 100644 --- a/lib/contentstack/entry_collection.rb +++ b/lib/contentstack/entry_collection.rb @@ -1,7 +1,9 @@ require 'contentstack/entry' +require 'util' module Contentstack class EntryCollection + using Utility attr_reader :entries, :count, :content_type, :schema def initialize(json, content_type_uid=nil) diff --git a/lib/contentstack/query.rb b/lib/contentstack/query.rb index f5c6123..0e28a85 100644 --- a/lib/contentstack/query.rb +++ b/lib/contentstack/query.rb @@ -1,8 +1,10 @@ require 'contentstack/entry_collection' +require 'util' module Contentstack # A class that defines a query that is used to query for Entry instance. class Query + using Utility # @!attribute [r] query # Attribute which has all the information about the query which will be executed against Contentstack API diff --git a/lib/contentstack/version.rb b/lib/contentstack/version.rb index a996fc4..767026e 100644 --- a/lib/contentstack/version.rb +++ b/lib/contentstack/version.rb @@ -1,3 +1,3 @@ module Contentstack - VERSION = "0.4.2" + VERSION = "0.4.3" end \ No newline at end of file diff --git a/lib/util.rb b/lib/util.rb index a61baa9..fdf5c79 100644 --- a/lib/util.rb +++ b/lib/util.rb @@ -1,107 +1,111 @@ -class Hash - def to_query(namespace = nil) - collect do |key, value| - value.to_query(namespace ? "#{namespace}[#{key}]" : key) - end.sort * '&' - end - - def symbolize_keys - new_hash = {} - self.each do |key,value| - if [Hash, Array].include?(value.class) - new_hash[key.to_sym] = value.symbolize_keys - else - new_hash[key.to_sym] = value +module Contentstack + module Utility + refine Hash do + def to_query(namespace = nil) + collect do |key, value| + value.to_query(namespace ? "#{namespace}[#{key}]" : key) + end.sort * '&' + end + + def symbolize_keys + new_hash = {} + self.each do |key,value| + if [Hash, Array].include?(value.class) + new_hash[key.to_sym] = value.symbolize_keys + else + new_hash[key.to_sym] = value + end + end + new_hash + end + end + + refine Array do + def to_query(key) + prefix = "#{key}[]" + collect { |value| value.to_query(prefix) }.join '&' + end + + def symbolize_keys + collect do |entry| + if entry.class == Hash + entry.symbolize_keys + else + entry + end + end + end + end + + refine String do + def to_query(key) + require 'cgi' unless defined?(CGI) && defined?(CGI::escape) + "#{CGI.escape(key.to_param)}=#{CGI.escape(to_param.to_s)}" + end + + def to_param + to_s + end + end + + refine Symbol do + def to_query(key) + to_s.to_query(key) + end + + def to_param + to_s + end + end + + refine NilClass do + def to_query(key) + to_s.to_query(key) + end + + def to_param + to_s + end + end + + refine TrueClass do + def to_query(key) + to_s.to_query(key) + end + + def to_query(val) + "#{CGI.escape(val.to_param)}=#{CGI.escape(to_s)}" end end - new_hash - end -end - -class Array - def to_query(key) - prefix = "#{key}[]" - collect { |value| value.to_query(prefix) }.join '&' - end - - def symbolize_keys - collect do |entry| - if entry.class == Hash - entry.symbolize_keys - else - entry + + refine FalseClass do + def to_query(key) + to_s.to_query(key) + end + + def to_query(val) + "#{CGI.escape(val.to_param)}=#{CGI.escape(to_s)}" end end - end -end - -class String - def to_query(key) - require 'cgi' unless defined?(CGI) && defined?(CGI::escape) - "#{CGI.escape(key.to_param)}=#{CGI.escape(to_param.to_s)}" - end - - def to_param - to_s - end -end - -class Symbol - def to_query(key) - to_s.to_query(key) - end - - def to_param - to_s - end -end - -class NilClass - def to_query(key) - to_s.to_query(key) - end - - def to_param - to_s - end -end - -class TrueClass - def to_query(key) - to_s.to_query(key) - end - - def to_query(val) - "#{CGI.escape(val.to_param)}=#{CGI.escape(to_s)}" - end -end - -class FalseClass - def to_query(key) - to_s.to_query(key) - end - - def to_query(val) - "#{CGI.escape(val.to_param)}=#{CGI.escape(to_s)}" - end -end - -class Integer - def to_query(key) - to_s.to_query(key) - end - - def to_query(val) - "#{CGI.escape(val.to_param)}=#{CGI.escape(to_s)}" - end -end - -class Numeric - def to_query(key) - to_s.to_query(key) - end - - def to_query(val) - "#{CGI.escape(val.to_param)}=#{CGI.escape(to_s)}" - end + + refine Integer do + def to_query(key) + to_s.to_query(key) + end + + def to_query(val) + "#{CGI.escape(val.to_param)}=#{CGI.escape(to_s)}" + end + end + + refine Numeric do + def to_query(key) + to_s.to_query(key) + end + + def to_query(val) + "#{CGI.escape(val.to_param)}=#{CGI.escape(to_s)}" + end + end + end end \ No newline at end of file