softlaunch 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -2,3 +2,4 @@
2
2
  .bundle
3
3
  Gemfile.lock
4
4
  pkg/*
5
+ bin/*
@@ -1,31 +1,35 @@
1
1
  <h1>Soft Launch: <%=@softlaunch.name%></h1>
2
- <table class="softlaunchstatus">
3
- <tr>
4
- <td class="label">Public Status: </td>
5
- <td class="value"><%=@softlaunch.status_string%></td>
6
- </tr>
7
- <tr>
8
- <td class="label">This Browser Status: </td>
2
+
3
+ <%if @softlaunch.enabled?%>
4
+ <p>Feature is enabled for all users.</p>
5
+ <%elsif @softlaunch.disabled?%>
6
+ <p>Feature is disabled for all users.</p>
7
+ <%elsif @softlaunch.user_specific?%>
8
+ <p>
9
+ Feature is enabled/disabled on a per-user's browser instance basis.
10
+ A cookie in the user's browser is used to determine if the
11
+ feature is enabled or not.
12
+ </p>
13
+ <p>
14
+ Status for this browser:
9
15
  <%if @softlaunch.launched?%>
10
- <td class="value">
11
- Enabled
12
- </td>
13
- <td class="value">
14
- <%=form_for @softlaunch.usercode,:method=>:put do |f|%>
15
- <%=hidden_field_tag :sl_enable,0%>
16
- <%=f.submit "Disable"%>
17
- <%end%>
18
- </td>
16
+ <div style="padding-left: 20px;font-weight: bold;font-size:2em;">Enabled</div>
19
17
  <%else%>
20
- <td class="value">
21
- Disabled
22
- </td>
23
- <td class="value">
24
- <%=form_for @softlaunch.usercode,:method=>:put do |f|%>
25
- <%=hidden_field_tag :sl_enable,1%>
26
- <%=f.submit "Enable"%>
27
- <%end%>
28
- </td>
18
+ <div style="padding-left: 20px;font-weight: bold;font-size:2em;">Disabled</div>
29
19
  <%end%>
30
- </tr>
31
- </table>
20
+ </p>
21
+ <%if @softlaunch.launched?%>
22
+ <%=form_for @softlaunch.usercode,:method=>:put do |f|%>
23
+ <%=hidden_field_tag :sl_enable,0%>
24
+ <%=f.submit "Disable this Browser"%>
25
+ <%end%>
26
+ <%else%>
27
+ <%=form_for @softlaunch.usercode,:method=>:put do |f|%>
28
+ <%=hidden_field_tag :sl_enable,1%>
29
+ <%=f.submit "Enable this Browser"%>
30
+ <%end%>
31
+ <%end%>
32
+ </p>
33
+ <%else%>
34
+ <p>Feature status cannot be determined.</p>
35
+ <%end%>
@@ -20,14 +20,4 @@ class SoftLaunch
20
20
  @status==:user
21
21
  end
22
22
 
23
- def status_string
24
- case @status
25
- when :disabled then "Disabled"
26
- when :enabled then "Enabled"
27
- when :user then "Per User"
28
- else
29
- "???#{@status}???"
30
- end
31
- end
32
-
33
23
  end
@@ -1,3 +1,3 @@
1
1
  module Softlaunch
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: softlaunch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-23 00:00:00.000000000Z
12
+ date: 2012-03-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70316284707900 !ruby/object:Gem::Requirement
16
+ requirement: &70234397282440 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70316284707900
24
+ version_requirements: *70234397282440
25
25
  description: Stage the launch of new features to smaller groups of people first.
26
26
  email:
27
27
  - lee@leeatchison.com
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  version: '0'
77
77
  requirements: []
78
78
  rubyforge_project: softlaunch
79
- rubygems_version: 1.8.10
79
+ rubygems_version: 1.8.15
80
80
  signing_key:
81
81
  specification_version: 3
82
82
  summary: Stage the launch of new features to smaller groups of people first.