rollout 0.1.0 → 0.1.1

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 (5) hide show
  1. data/README.rdoc +7 -3
  2. data/Rakefile +2 -2
  3. data/VERSION +1 -1
  4. data/rollout.gemspec +61 -0
  5. metadata +6 -5
@@ -1,13 +1,17 @@
1
1
  = rollout
2
2
 
3
- Conditionally rollout features to certain users with redis.
3
+ Conditionally roll out features with redis.
4
+
5
+ == Install it
6
+
7
+ gem install rollout
4
8
 
5
9
  == How it works
6
10
 
7
11
  Initialize a rollout object. I assign it to a global var.
8
12
 
9
13
  $redis = Redis.new
10
- $rollout = Rollout.new(redis)
14
+ $rollout = Rollout.new($redis)
11
15
 
12
16
  Check whether a feature is active for a particular user:
13
17
 
@@ -25,7 +29,7 @@ You can activate the all group for the chat feature like this:
25
29
 
26
30
  You might also want to define your own groups. We have one for our caretakers:
27
31
 
28
- $rollout.define_group(:chat) do |user|
32
+ $rollout.define_group(:caretakers) do |user|
29
33
  user.caretaker?
30
34
  end
31
35
 
data/Rakefile CHANGED
@@ -7,8 +7,8 @@ begin
7
7
  gem.name = "rollout"
8
8
  gem.summary = %Q{Conditionally roll out features with redis.}
9
9
  gem.description = %Q{Conditionally roll out features with redis.}
10
- gem.email = "james@giraffesoft.ca"
11
- gem.homepage = "http://github.com/giraffesoft/rollout"
10
+ gem.email = "jamesgoick@gmail.com"
11
+ gem.homepage = "http://github.com/jamesgolick/rollout"
12
12
  gem.authors = ["James Golick"]
13
13
  gem.add_development_dependency "rspec", "1.2.9"
14
14
  gem.add_development_dependency "bourne", "1.0.0"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -0,0 +1,61 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{rollout}
8
+ s.version = "0.1.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["James Golick"]
12
+ s.date = %q{2010-07-17}
13
+ s.description = %q{Conditionally roll out features with redis.}
14
+ s.email = %q{jamesgoick@gmail.com}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ ".gitignore",
22
+ "LICENSE",
23
+ "README.rdoc",
24
+ "Rakefile",
25
+ "VERSION",
26
+ "lib/rollout.rb",
27
+ "rollout.gemspec",
28
+ "spec/rollout_spec.rb",
29
+ "spec/spec.opts",
30
+ "spec/spec_helper.rb"
31
+ ]
32
+ s.homepage = %q{http://github.com/jamesgolick/rollout}
33
+ s.rdoc_options = ["--charset=UTF-8"]
34
+ s.require_paths = ["lib"]
35
+ s.rubygems_version = %q{1.3.7}
36
+ s.summary = %q{Conditionally roll out features with redis.}
37
+ s.test_files = [
38
+ "spec/rollout_spec.rb",
39
+ "spec/spec_helper.rb"
40
+ ]
41
+
42
+ if s.respond_to? :specification_version then
43
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
44
+ s.specification_version = 3
45
+
46
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
47
+ s.add_development_dependency(%q<rspec>, ["= 1.2.9"])
48
+ s.add_development_dependency(%q<bourne>, ["= 1.0.0"])
49
+ s.add_development_dependency(%q<redis>, ["= 0.1"])
50
+ else
51
+ s.add_dependency(%q<rspec>, ["= 1.2.9"])
52
+ s.add_dependency(%q<bourne>, ["= 1.0.0"])
53
+ s.add_dependency(%q<redis>, ["= 0.1"])
54
+ end
55
+ else
56
+ s.add_dependency(%q<rspec>, ["= 1.2.9"])
57
+ s.add_dependency(%q<bourne>, ["= 1.0.0"])
58
+ s.add_dependency(%q<redis>, ["= 0.1"])
59
+ end
60
+ end
61
+
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rollout
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - James Golick
@@ -66,7 +66,7 @@ dependencies:
66
66
  type: :development
67
67
  version_requirements: *id003
68
68
  description: Conditionally roll out features with redis.
69
- email: james@giraffesoft.ca
69
+ email: jamesgoick@gmail.com
70
70
  executables: []
71
71
 
72
72
  extensions: []
@@ -82,11 +82,12 @@ files:
82
82
  - Rakefile
83
83
  - VERSION
84
84
  - lib/rollout.rb
85
+ - rollout.gemspec
85
86
  - spec/rollout_spec.rb
86
87
  - spec/spec.opts
87
88
  - spec/spec_helper.rb
88
89
  has_rdoc: true
89
- homepage: http://github.com/giraffesoft/rollout
90
+ homepage: http://github.com/jamesgolick/rollout
90
91
  licenses: []
91
92
 
92
93
  post_install_message: