sapling 0.4.1 → 0.4.2

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.
Files changed (4) hide show
  1. data/README.md +3 -3
  2. data/changelog.md +14 -9
  3. data/lib/sapling/version.rb +1 -1
  4. metadata +62 -100
data/README.md CHANGED
@@ -99,12 +99,12 @@ You can optionally inject your own code for testing if a feature is active. In r
99
99
  Client-side Usage
100
100
  -----------------
101
101
 
102
- Sapling include a javascript helper which add and remove classes on the HTML element for a given user, based upon the
102
+ Sapling include a javascript helper which adds and removes classes on the HTML element for a given user, based upon the
103
103
  features available to that user.
104
104
 
105
- Given the feature `space_chat`, if it is enabled for the given user, the html root will get an class `sapling_feature_space_chat_on`. If disabled for the given user, the class will be `sapling_feature_space_chat_off`.
105
+ Given the feature `space_chat`, if it is enabled for the given user, the html root will get the class `sapling_feature_space_chat_on`. If disabled for the given user, the class will be `sapling_feature_space_chat_off`.
106
106
 
107
- To retrieve the class name for a given feature, you can use the `sapling_js_generator.css_container_class(feature)` and `sapling_js_generator.css_toggle_class(feature, on? (boolean) )` helpers in your ERB files.
107
+ To retrieve the class name for a given feature, you can use `sapling.css_class(feature)` and `sapling.css_toggle_class(feature, on? (boolean) )` in your ERB files.
108
108
 
109
109
  Using the client-side tools, you can define CSS classes which will be visible/invisible when a feature is enabled/disabled. For example:
110
110
 
@@ -1,13 +1,7 @@
1
- API changes in 0.3.0
2
- ====================
3
-
4
- When using Sapling in rails, there are some api changes:
5
-
6
- old: feature_active?(feature_name)
7
- new: sapling.active?(feature_name,options={})
1
+ 0.4.2
2
+ =====
8
3
 
9
- old: feature_class(feature_name)
10
- new: sapling.css_class(feature_name)
4
+ Fixed a install/permissions issue.
11
5
 
12
6
  0.4.1
13
7
  =====
@@ -17,3 +11,14 @@ every override method called. This indicates if the feature would be active
17
11
  without the override.
18
12
 
19
13
  Fixed fatal bug in the Sapling+Rails controller javascript generation.
14
+
15
+ API changes in 0.3.0
16
+ ====================
17
+
18
+ When using Sapling in rails, there are some api changes:
19
+
20
+ old: feature_active?(feature_name)
21
+ new: sapling.active?(feature_name,options={})
22
+
23
+ old: feature_class(feature_name)
24
+ new: sapling.css_class(feature_name)
@@ -1,3 +1,3 @@
1
1
  module Sapling
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
metadata CHANGED
@@ -1,112 +1,83 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: sapling
3
- version: !ruby/object:Gem::Version
4
- hash: 13
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.2
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 4
9
- - 1
10
- version: 0.4.1
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Shane Brinkman-Davis
14
9
  - Jason Strutz
15
10
  autorequire:
16
11
  bindir: bin
17
12
  cert_chain: []
18
-
19
- date: 2012-02-03 00:00:00 -08:00
20
- default_executable:
21
- dependencies:
22
- - !ruby/object:Gem::Dependency
13
+ date: 2012-02-06 00:00:00.000000000Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
23
16
  name: activerecord
24
- prerelease: false
25
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: &70325757393920 !ruby/object:Gem::Requirement
26
18
  none: false
27
- requirements:
28
- - - ">"
29
- - !ruby/object:Gem::Version
30
- hash: 5
31
- segments:
32
- - 2
33
- - 3
34
- version: "2.3"
19
+ requirements:
20
+ - - ! '>'
21
+ - !ruby/object:Gem::Version
22
+ version: '2.3'
35
23
  type: :runtime
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: rspec
39
24
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
25
+ version_requirements: *70325757393920
26
+ - !ruby/object:Gem::Dependency
27
+ name: rspec
28
+ requirement: &70325757393320 !ruby/object:Gem::Requirement
41
29
  none: false
42
- requirements:
30
+ requirements:
43
31
  - - ~>
44
- - !ruby/object:Gem::Version
45
- hash: 19
46
- segments:
47
- - 2
48
- - 7
49
- - 0
32
+ - !ruby/object:Gem::Version
50
33
  version: 2.7.0
51
34
  type: :development
52
- version_requirements: *id002
53
- - !ruby/object:Gem::Dependency
54
- name: rails
55
35
  prerelease: false
56
- requirement: &id003 !ruby/object:Gem::Requirement
36
+ version_requirements: *70325757393320
37
+ - !ruby/object:Gem::Dependency
38
+ name: rails
39
+ requirement: &70325757392780 !ruby/object:Gem::Requirement
57
40
  none: false
58
- requirements:
59
- - - "="
60
- - !ruby/object:Gem::Version
61
- hash: 27
62
- segments:
63
- - 2
64
- - 3
65
- - 12
41
+ requirements:
42
+ - - =
43
+ - !ruby/object:Gem::Version
66
44
  version: 2.3.12
67
45
  type: :development
68
- version_requirements: *id003
69
- - !ruby/object:Gem::Dependency
70
- name: mocha
71
46
  prerelease: false
72
- requirement: &id004 !ruby/object:Gem::Requirement
47
+ version_requirements: *70325757392780
48
+ - !ruby/object:Gem::Dependency
49
+ name: mocha
50
+ requirement: &70325757392300 !ruby/object:Gem::Requirement
73
51
  none: false
74
- requirements:
75
- - - ">="
76
- - !ruby/object:Gem::Version
77
- hash: 3
78
- segments:
79
- - 0
80
- version: "0"
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
81
56
  type: :development
82
- version_requirements: *id004
83
- - !ruby/object:Gem::Dependency
84
- name: sqlite3
85
57
  prerelease: false
86
- requirement: &id005 !ruby/object:Gem::Requirement
58
+ version_requirements: *70325757392300
59
+ - !ruby/object:Gem::Dependency
60
+ name: sqlite3
61
+ requirement: &70325757391660 !ruby/object:Gem::Requirement
87
62
  none: false
88
- requirements:
63
+ requirements:
89
64
  - - ~>
90
- - !ruby/object:Gem::Version
91
- hash: 19
92
- segments:
93
- - 1
94
- - 3
95
- - 4
65
+ - !ruby/object:Gem::Version
96
66
  version: 1.3.4
97
67
  type: :development
98
- version_requirements: *id005
99
- description: Sapling lets you seed your new features to just a few users at a time. You can change which and how many users are seeded for a feature dynamically by updating the database via the Sapling API. Core features are the ability to seed a feature for specific users and/or a percentage of users.
100
- email:
68
+ prerelease: false
69
+ version_requirements: *70325757391660
70
+ description: Sapling lets you seed your new features to just a few users at a time.
71
+ You can change which and how many users are seeded for a feature dynamically by
72
+ updating the database via the Sapling API. Core features are the ability to seed
73
+ a feature for specific users and/or a percentage of users.
74
+ email:
101
75
  - shanebdavis@imikimi.com
102
76
  - jason@cumuluscode.com
103
77
  executables: []
104
-
105
78
  extensions: []
106
-
107
79
  extra_rdoc_files: []
108
-
109
- files:
80
+ files:
110
81
  - .gitignore
111
82
  - Gemfile
112
83
  - README.md
@@ -202,41 +173,32 @@ files:
202
173
  - spec/sapling_examples.rb
203
174
  - spec/spec.opts
204
175
  - spec/spec_helper.rb
205
- has_rdoc: true
206
176
  homepage: https://github.com/imikimi/sapling
207
177
  licenses: []
208
-
209
178
  post_install_message:
210
179
  rdoc_options: []
211
-
212
- require_paths:
180
+ require_paths:
213
181
  - lib
214
- required_ruby_version: !ruby/object:Gem::Requirement
182
+ required_ruby_version: !ruby/object:Gem::Requirement
215
183
  none: false
216
- requirements:
217
- - - ">="
218
- - !ruby/object:Gem::Version
219
- hash: 3
220
- segments:
221
- - 0
222
- version: "0"
223
- required_rubygems_version: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ! '>='
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ required_rubygems_version: !ruby/object:Gem::Requirement
224
189
  none: false
225
- requirements:
226
- - - ">="
227
- - !ruby/object:Gem::Version
228
- hash: 3
229
- segments:
230
- - 0
231
- version: "0"
190
+ requirements:
191
+ - - ! '>='
192
+ - !ruby/object:Gem::Version
193
+ version: '0'
232
194
  requirements: []
233
-
234
195
  rubyforge_project: sapling
235
- rubygems_version: 1.5.3
196
+ rubygems_version: 1.8.6
236
197
  signing_key:
237
198
  specification_version: 3
238
- summary: Incrementally roll out your features. Uses ActiveRecord to store configuration and supports client-side roll-out of cached pages.
239
- test_files:
199
+ summary: Incrementally roll out your features. Uses ActiveRecord to store configuration
200
+ and supports client-side roll-out of cached pages.
201
+ test_files:
240
202
  - spec/active_record_spec.rb
241
203
  - spec/feature_spec.rb
242
204
  - spec/javascript_generator_spec.rb