buttercms-ruby 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d415e1e81a0dcf5925d7ef015bb6cccddb56f70d
4
- data.tar.gz: c9ca393015e3c867cd1c23a03cf9bc9be735244a
3
+ metadata.gz: ef6395b8ea97cf6808ca570520d413a25e3ec934
4
+ data.tar.gz: a50b785d2391547514e40bd0f758dabbffbad0f7
5
5
  SHA512:
6
- metadata.gz: 311845903bbd76f8de2d2e6eeff471fcb9f56b671cc8d7dd2e01dfaad1114a41f1f795d5dcc8c606d21db61678b529dc7949c0eeaeb566c6b28cb8640a2edd1d
7
- data.tar.gz: 0cb57d56b0e3c50bcb106faa76fe9c57dd2b98e45134c45d8ce5d6264b3c998d9dc31653eb284b729bfa1d1c01cffca7e1c76e23300aebe320f4433d7538e1aa
6
+ metadata.gz: 556bee36b09b3f034365224056529309e316dc287daed1c33ddfe3b57fa9d3bf77d43c3d2088ecef0f534c6970127e51053a7b19f3a3118e25f5e2c5814b6456
7
+ data.tar.gz: 3d9c45d19706ba1a60ca9fe229b61220e197b4aa7a41ae9d2db97cc5bdbd700a6cf63ee35e0cdedad72385bb757770edf229640bdd0192bad99338bdf951b524
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.6
1
+ 1.0.7
@@ -10,6 +10,11 @@ require 'buttercms/category'
10
10
  require 'buttercms/post'
11
11
  require 'buttercms/feed'
12
12
 
13
+ # See https://github.com/jruby/jruby/issues/3113
14
+ if RUBY_VERSION < '2.0.0'
15
+ require_relative 'core_ext/ostruct'
16
+ end
17
+
13
18
  module ButterCMS
14
19
  @api_url = 'https://api.buttercms.com/v2'
15
20
  @token = nil
@@ -1,3 +1,3 @@
1
1
  module ButterCMS
2
- VERSION = '1.0.6'
2
+ VERSION = '1.0.7'
3
3
  end
@@ -0,0 +1,9 @@
1
+ class OpenStruct
2
+ def [] key
3
+ send key
4
+ end unless respond_to? :[]
5
+
6
+ def []= key, val
7
+ send %(#{key}=), val
8
+ end unless respond_to? :[]=
9
+ end
metadata CHANGED
@@ -1,73 +1,72 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buttercms-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - ButterCMS
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-25 00:00:00.000000000 Z
11
+ date: 2016-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rest-client
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
- - - ">="
16
+ - - '>='
18
17
  - !ruby/object:Gem::Version
19
18
  version: 1.7.0
20
- - - "<"
19
+ - - <
21
20
  - !ruby/object:Gem::Version
22
21
  version: '2'
23
- type: :runtime
22
+ name: rest-client
24
23
  prerelease: false
24
+ type: :runtime
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - ">="
27
+ - - '>='
28
28
  - !ruby/object:Gem::Version
29
29
  version: 1.7.0
30
- - - "<"
30
+ - - <
31
31
  - !ruby/object:Gem::Version
32
32
  version: '2'
33
33
  - !ruby/object:Gem::Dependency
34
- name: rspec
35
34
  requirement: !ruby/object:Gem::Requirement
36
35
  requirements:
37
- - - "~>"
36
+ - - ~>
38
37
  - !ruby/object:Gem::Version
39
38
  version: '2.7'
40
- type: :development
39
+ name: rspec
41
40
  prerelease: false
41
+ type: :development
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - "~>"
44
+ - - ~>
45
45
  - !ruby/object:Gem::Version
46
46
  version: '2.7'
47
47
  - !ruby/object:Gem::Dependency
48
- name: webmock
49
48
  requirement: !ruby/object:Gem::Requirement
50
49
  requirements:
51
- - - ">="
50
+ - - '>='
52
51
  - !ruby/object:Gem::Version
53
52
  version: '0'
54
- type: :development
53
+ name: webmock
55
54
  prerelease: false
55
+ type: :development
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - ">="
58
+ - - '>='
59
59
  - !ruby/object:Gem::Version
60
60
  version: '0'
61
- description: Butter is a blogging platform loved by engineers. See https://buttercms.com
62
- for details.
61
+ description: Butter is a blogging platform loved by engineers. See https://buttercms.com for details.
63
62
  email:
64
63
  - support@buttercms.com
65
64
  executables: []
66
65
  extensions: []
67
66
  extra_rdoc_files: []
68
67
  files:
69
- - ".gitignore"
70
- - ".rspec"
68
+ - .gitignore
69
+ - .rspec
71
70
  - Gemfile
72
71
  - LICENSE
73
72
  - README.md
@@ -83,6 +82,7 @@ files:
83
82
  - lib/buttercms/hash_to_object.rb
84
83
  - lib/buttercms/post.rb
85
84
  - lib/buttercms/version.rb
85
+ - lib/core_ext/ostruct.rb
86
86
  - spec/lib/butter-ruby_spec.rb
87
87
  - spec/lib/buttercms/butter_collection_spec.rb
88
88
  - spec/lib/buttercms/butter_resource_spec.rb
@@ -92,24 +92,24 @@ homepage: https://buttercms.com/docs
92
92
  licenses:
93
93
  - MIT
94
94
  metadata: {}
95
- post_install_message:
95
+ post_install_message:
96
96
  rdoc_options: []
97
97
  require_paths:
98
98
  - lib
99
99
  required_ruby_version: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - '>='
102
102
  - !ruby/object:Gem::Version
103
103
  version: 1.9.3
104
104
  required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  requirements:
106
- - - ">="
106
+ - - '>='
107
107
  - !ruby/object:Gem::Version
108
108
  version: '0'
109
109
  requirements: []
110
- rubyforge_project:
111
- rubygems_version: 2.4.5.1
112
- signing_key:
110
+ rubyforge_project:
111
+ rubygems_version: 2.1.9
112
+ signing_key:
113
113
  specification_version: 4
114
114
  summary: A simple Ruby client for the buttercms.com REST API
115
115
  test_files: