collins_state 0.2.12 → 0.2.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 383734534666cfd38607de3fd4a50d4b641c2260
4
+ data.tar.gz: 0ad13fd046494424e9839ffabe3012b9f4d4d07a
5
+ SHA512:
6
+ metadata.gz: f8df5229dd2260a9361c202ba694c1beda10445abd1f723616e17819047133ac00c56de5b9e969e99a6e8bd0e61b39f442d37024e7c73e0727205e9a06795033
7
+ data.tar.gz: a870285b45911fe50a0ecc4a7fa85b76cab5ef36f53f96850cc16d354a8a6ae84a14fa7d42e85eb31af4ac61b7af5ba0c58ed5331c49ebe5775be6a331f68071
data/Gemfile CHANGED
@@ -1,15 +1,3 @@
1
- source :rubygems
1
+ source 'https://rubygems.org'
2
2
 
3
- Encoding.default_external = Encoding::UTF_8
4
- gem 'collins_client', '~> 0.2.9'
5
- gem 'escape', '~> 0.0.4'
6
-
7
- group :development do
8
- gem "rspec", "~> 2.10.0"
9
- gem "yard", "~> 0.8"
10
- gem 'redcarpet'
11
- gem 'webmock'
12
- gem "bundler", "~> 1.2.1"
13
- gem "jeweler", "~> 1.8.4"
14
- gem 'simplecov'
15
- end
3
+ gemspec
data/Rakefile CHANGED
@@ -11,46 +11,11 @@ rescue Bundler::BundlerError => e
11
11
  end
12
12
  require 'rake'
13
13
 
14
- require 'jeweler'
15
- jeweler = Jeweler::Tasks.new do |gem|
16
- gem.name = "collins_state"
17
- gem.homepage = "https://github.com/tumblr/collins/tree/master/support/ruby/collins-state"
18
- gem.license = "APL 2.0"
19
- gem.summary = %Q{Collins based state management}
20
- gem.description = %Q{Provides basic framework for managing stateful processes with collins}
21
- gem.email = "bmatheny@tumblr.com"
22
- gem.authors = ["Blake Matheny"]
23
- gem.files.exclude "spec/**/*"
24
- gem.files.exclude '.gitignore'
25
- gem.files.exclude '.rspec'
26
- gem.files.exclude '.rvmrc'
27
- gem.add_runtime_dependency 'collins_client', '~> 0.2.9'
28
- gem.add_runtime_dependency 'escape', '~> 0.0.4'
29
- end
30
-
31
14
  task :help do
32
15
  puts("rake -T # See available rake tasks")
33
- puts("rake publish # generate gemspec, build it, push it to repo")
34
- puts("rake version:bump:patch # Bump patch number")
35
- puts("rake all # bump patch and publish")
36
16
  puts("rake # Run tests")
37
17
  end
38
18
 
39
- task :publish => [:gemspec, :build] do
40
- package_abs = jeweler.jeweler.gemspec_helper.gem_path
41
- package_name = File.basename(package_abs)
42
-
43
- ["repo.tumblr.net","repo.ewr01.tumblr.net"].each do |host|
44
- puts("Copying #{package_abs} to #{host} and installing, you may be prompted for your password")
45
- system "scp #{package_abs} #{host}:"
46
- system "ssh -t #{host} 'sudo tumblr_gem install #{package_name}'"
47
- end
48
- end
49
-
50
- task :all => ["version:bump:patch", :publish] do
51
- puts("Done!")
52
- end
53
-
54
19
  require 'rspec/core'
55
20
  require 'rspec/core/rake_task'
56
21
  RSpec::Core::RakeTask.new(:spec) do |spec|
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.11
1
+ 0.2.13
@@ -127,11 +127,11 @@ module Collins; module State; module Mixin
127
127
  updated = asset_from_cache asset
128
128
  result = updated.send(attribute_name.to_sym)
129
129
  if result then
130
- res = JSON.parse(result) rescue nil
131
- if res.nil? then # for backwards compatibility
132
- res = JSON.parse(result, :create_additions => false)
133
- res = ::Collins::State::Specification.json_create(res) if (res.is_a?(Hash) and res.key?('data'))
130
+ res = JSON.parse(result, :create_additions => false) rescue nil
131
+ if res.is_a?(Hash) and res.key?('data') then
132
+ res = ::Collins::State::Specification.json_create(res)
134
133
  end
134
+
135
135
  if res.is_a?(::Collins::State::Specification) then
136
136
  res
137
137
  else
metadata CHANGED
@@ -1,54 +1,152 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: collins_state
3
- version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.2.12
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.13
6
5
  platform: ruby
7
- authors:
6
+ authors:
8
7
  - Blake Matheny
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
-
13
- date: 2012-11-19 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
11
+ date: 2015-05-20 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
16
14
  name: collins_client
17
- prerelease: false
18
- requirement: &id001 !ruby/object:Gem::Requirement
19
- none: false
20
- requirements:
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
21
17
  - - ~>
22
- - !ruby/object:Gem::Version
23
- version: 0.2.9
18
+ - !ruby/object:Gem::Version
19
+ version: 0.2.7
24
20
  type: :runtime
25
- version_requirements: *id001
26
- - !ruby/object:Gem::Dependency
27
- name: escape
28
21
  prerelease: false
29
- requirement: &id002 !ruby/object:Gem::Requirement
30
- none: false
31
- requirements:
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 0.2.7
27
+ - !ruby/object:Gem::Dependency
28
+ name: escape
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
32
31
  - - ~>
33
- - !ruby/object:Gem::Version
32
+ - !ruby/object:Gem::Version
34
33
  version: 0.0.4
35
34
  type: :runtime
36
- version_requirements: *id002
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: 0.0.4
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '2.99'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '2.99'
55
+ - !ruby/object:Gem::Dependency
56
+ name: yard
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: redcarpet
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: webmock
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: bundler
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: simplecov
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - '>='
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rake
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - '>='
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
37
139
  description: Provides basic framework for managing stateful processes with collins
38
- email: bmatheny@tumblr.com
140
+ email: collins-sm@googlegroups.com
39
141
  executables: []
40
-
41
142
  extensions: []
42
-
43
- extra_rdoc_files:
143
+ extra_rdoc_files:
44
144
  - README.md
45
- files:
145
+ files:
46
146
  - Gemfile
47
- - Gemfile.lock
48
147
  - README.md
49
148
  - Rakefile
50
149
  - VERSION
51
- - collins_state.gemspec
52
150
  - lib/collins/persistent_state.rb
53
151
  - lib/collins/state/mixin.rb
54
152
  - lib/collins/state/mixin_class_methods.rb
@@ -56,31 +154,27 @@ files:
56
154
  - lib/collins/workflows/provisioning_workflow.rb
57
155
  - lib/collins_state.rb
58
156
  homepage: https://github.com/tumblr/collins/tree/master/support/ruby/collins-state
59
- licenses:
157
+ licenses:
60
158
  - APL 2.0
159
+ metadata: {}
61
160
  post_install_message:
62
161
  rdoc_options: []
63
-
64
- require_paths:
162
+ require_paths:
65
163
  - lib
66
- required_ruby_version: !ruby/object:Gem::Requirement
67
- none: false
68
- requirements:
69
- - - ">="
70
- - !ruby/object:Gem::Version
71
- version: "0"
72
- required_rubygems_version: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ">="
76
- - !ruby/object:Gem::Version
77
- version: "0"
164
+ required_ruby_version: !ruby/object:Gem::Requirement
165
+ requirements:
166
+ - - '>='
167
+ - !ruby/object:Gem::Version
168
+ version: 1.9.2
169
+ required_rubygems_version: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
78
174
  requirements: []
79
-
80
175
  rubyforge_project:
81
- rubygems_version: 1.8.10
176
+ rubygems_version: 2.0.14
82
177
  signing_key:
83
- specification_version: 3
178
+ specification_version: 4
84
179
  summary: Collins based state management
85
180
  test_files: []
86
-
data/Gemfile.lock DELETED
@@ -1,55 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- addressable (2.3.2)
5
- collins_client (0.2.9)
6
- httparty (~> 0.8.3)
7
- crack (0.3.1)
8
- diff-lcs (1.1.3)
9
- escape (0.0.4)
10
- git (1.2.5)
11
- httparty (0.8.3)
12
- multi_json (~> 1.0)
13
- multi_xml
14
- jeweler (1.8.4)
15
- bundler (~> 1.0)
16
- git (>= 1.2.5)
17
- rake
18
- rdoc
19
- json (1.7.5)
20
- multi_json (1.3.7)
21
- multi_xml (0.5.1)
22
- rake (10.0.2)
23
- rdoc (3.12)
24
- json (~> 1.4)
25
- redcarpet (2.2.2)
26
- rspec (2.10.0)
27
- rspec-core (~> 2.10.0)
28
- rspec-expectations (~> 2.10.0)
29
- rspec-mocks (~> 2.10.0)
30
- rspec-core (2.10.1)
31
- rspec-expectations (2.10.0)
32
- diff-lcs (~> 1.1.3)
33
- rspec-mocks (2.10.1)
34
- simplecov (0.7.1)
35
- multi_json (~> 1.0)
36
- simplecov-html (~> 0.7.1)
37
- simplecov-html (0.7.1)
38
- webmock (1.9.0)
39
- addressable (>= 2.2.7)
40
- crack (>= 0.1.7)
41
- yard (0.8.3)
42
-
43
- PLATFORMS
44
- ruby
45
-
46
- DEPENDENCIES
47
- bundler (~> 1.2.1)
48
- collins_client (~> 0.2.9)
49
- escape (~> 0.0.4)
50
- jeweler (~> 1.8.4)
51
- redcarpet
52
- rspec (~> 2.10.0)
53
- simplecov
54
- webmock
55
- yard (~> 0.8)
@@ -1,53 +0,0 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
- # -*- encoding: utf-8 -*-
5
-
6
- Gem::Specification.new do |s|
7
- s.name = "collins_state"
8
- s.version = "0.2.12"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Blake Matheny"]
12
- s.date = "2012-11-19"
13
- s.description = "Provides basic framework for managing stateful processes with collins"
14
- s.email = "bmatheny@tumblr.com"
15
- s.extra_rdoc_files = [
16
- "README.md"
17
- ]
18
- s.files = [
19
- "Gemfile",
20
- "Gemfile.lock",
21
- "README.md",
22
- "Rakefile",
23
- "VERSION",
24
- "collins_state.gemspec",
25
- "lib/collins/persistent_state.rb",
26
- "lib/collins/state/mixin.rb",
27
- "lib/collins/state/mixin_class_methods.rb",
28
- "lib/collins/state/specification.rb",
29
- "lib/collins/workflows/provisioning_workflow.rb",
30
- "lib/collins_state.rb"
31
- ]
32
- s.homepage = "https://github.com/tumblr/collins/tree/master/support/ruby/collins-state"
33
- s.licenses = ["APL 2.0"]
34
- s.require_paths = ["lib"]
35
- s.rubygems_version = "1.8.23"
36
- s.summary = "Collins based state management"
37
-
38
- if s.respond_to? :specification_version then
39
- s.specification_version = 3
40
-
41
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
42
- s.add_runtime_dependency(%q<collins_client>, ["~> 0.2.9"])
43
- s.add_runtime_dependency(%q<escape>, ["~> 0.0.4"])
44
- else
45
- s.add_dependency(%q<collins_client>, ["~> 0.2.9"])
46
- s.add_dependency(%q<escape>, ["~> 0.0.4"])
47
- end
48
- else
49
- s.add_dependency(%q<collins_client>, ["~> 0.2.9"])
50
- s.add_dependency(%q<escape>, ["~> 0.0.4"])
51
- end
52
- end
53
-