wcc-contentful 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 50a2a0ed668f43d915f50af3888256f29c3ca022
4
- data.tar.gz: '08d092aee182414f7f34f29bdce8dadd44d6107c'
3
+ metadata.gz: de8808034cae7552bdfa557eee3108f6912111d7
4
+ data.tar.gz: 50c47e3584ddd52463337df3ab706cc6d0a811ce
5
5
  SHA512:
6
- metadata.gz: 0b0b1d9386f0ce95d6568a493587c2d2350723679659e3070578926e6b33baaad0815d8a9590513bfd1e8f7259d2c08106dc8d1060447430ec6b2ff6dab95237
7
- data.tar.gz: e93086ac81f493b662fcdaa9269a1d6be0240db365bfec35937b513ca83a76459183bb49cceb30739a3e28d060d28674ccdf28c7ed7ae45404315fd6ca9bf77e
6
+ metadata.gz: cbb571fcbbabf959eee07bc9a3cf65138b96b686fb17bc8a41027beb1557501fa2d30c431272a6683cf9f1c76e4a60604038adc0a932b975dfc11327449d57c7
7
+ data.tar.gz: 1e7c91101e32de497e23b5d2584fc15db949f0c4e3b1e80e08a17a77c01b8326d34fb3ce94a0d6f5b06df688d1a12ffb7a6b1e939c62e6270d027a7e1ca9afbb
data/.gitignore CHANGED
@@ -9,3 +9,5 @@
9
9
 
10
10
  # rspec failure tracking
11
11
  .rspec_status
12
+
13
+ Gemfile.lock
@@ -6,4 +6,8 @@
6
6
 
7
7
  * Will now return nil if the Redirect model's pageReference does not include a url
8
8
  * Add test coverage for the Configuration class
9
- * Add tests for the valid_page_reference? method
9
+ * Add tests for the valid_page_reference? method
10
+
11
+ ## v0.0.3
12
+
13
+ * Can now fetch Redirect models via slug, regardless of slug lettercase (uppercase or lowercase).
@@ -9,7 +9,7 @@ module WCC::Contentful
9
9
  self.content_type_id = 'redirect'
10
10
 
11
11
  def self.find_by_slug(slug)
12
- self.find_by(slug: slug).load_children(load_depth).load.first
12
+ self.find_by(slug: slug.downcase).load_children(load_depth).load.first
13
13
  end
14
14
 
15
15
  def location
@@ -1,5 +1,5 @@
1
1
  module WCC
2
2
  module Contentful
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wcc-contentful
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Watermark Dev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-02-19 00:00:00.000000000 Z
11
+ date: 2018-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -107,7 +107,6 @@ files:
107
107
  - CHANGELOG.md
108
108
  - CODE_OF_CONDUCT.md
109
109
  - Gemfile
110
- - Gemfile.lock
111
110
  - LICENSE.txt
112
111
  - README.md
113
112
  - Rakefile
@@ -1,94 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- wcc-contentful (0.0.2)
5
- contentful_model (~> 0.2.0)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- activesupport (5.1.5)
11
- concurrent-ruby (~> 1.0, >= 1.0.2)
12
- i18n (~> 0.7)
13
- minitest (~> 5.1)
14
- tzinfo (~> 1.1)
15
- addressable (2.5.2)
16
- public_suffix (>= 2.0.2, < 4.0)
17
- concurrent-ruby (1.0.5)
18
- contentful (0.12.0)
19
- http (~> 1.0)
20
- json (~> 1.8)
21
- multi_json (~> 1)
22
- contentful-management (1.10.1)
23
- http (> 1.0, < 3.0)
24
- json (~> 1.8)
25
- multi_json (~> 1)
26
- contentful_model (0.2.0)
27
- activesupport
28
- contentful (~> 0.9)
29
- contentful-management (~> 1.0)
30
- redcarpet
31
- require_all
32
- crack (0.4.3)
33
- safe_yaml (~> 1.0.0)
34
- diff-lcs (1.3)
35
- domain_name (0.5.20170404)
36
- unf (>= 0.0.5, < 1.0.0)
37
- hashdiff (0.3.7)
38
- http (1.0.4)
39
- addressable (~> 2.3)
40
- http-cookie (~> 1.0)
41
- http-form_data (~> 1.0.1)
42
- http_parser.rb (~> 0.6.0)
43
- http-cookie (1.0.3)
44
- domain_name (~> 0.5)
45
- http-form_data (1.0.3)
46
- http_parser.rb (0.6.0)
47
- i18n (0.9.5)
48
- concurrent-ruby (~> 1.0)
49
- json (1.8.6)
50
- minitest (5.11.3)
51
- multi_json (1.13.1)
52
- public_suffix (3.0.0)
53
- rake (10.5.0)
54
- redcarpet (3.4.0)
55
- require_all (1.5.0)
56
- rspec (3.7.0)
57
- rspec-core (~> 3.7.0)
58
- rspec-expectations (~> 3.7.0)
59
- rspec-mocks (~> 3.7.0)
60
- rspec-core (3.7.1)
61
- rspec-support (~> 3.7.0)
62
- rspec-expectations (3.7.0)
63
- diff-lcs (>= 1.2.0, < 2.0)
64
- rspec-support (~> 3.7.0)
65
- rspec-mocks (3.7.0)
66
- diff-lcs (>= 1.2.0, < 2.0)
67
- rspec-support (~> 3.7.0)
68
- rspec-support (3.7.1)
69
- safe_yaml (1.0.4)
70
- thread_safe (0.3.6)
71
- tzinfo (1.2.5)
72
- thread_safe (~> 0.1)
73
- unf (0.1.4)
74
- unf_ext
75
- unf_ext (0.0.7.5)
76
- vcr (4.0.0)
77
- webmock (3.3.0)
78
- addressable (>= 2.3.6)
79
- crack (>= 0.3.2)
80
- hashdiff
81
-
82
- PLATFORMS
83
- ruby
84
-
85
- DEPENDENCIES
86
- bundler (~> 1.16)
87
- rake (~> 10.0)
88
- rspec (~> 3.0)
89
- vcr (~> 4.0)
90
- wcc-contentful!
91
- webmock (~> 3.0)
92
-
93
- BUNDLED WITH
94
- 1.16.1