softlaunch 0.5.1 → 0.5.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.
- data/.gitignore +1 -0
- data/app/views/soft_launch/soft_launch/show.html.erb +31 -27
- data/lib/softlaunch/accessors.rb +0 -10
- data/lib/softlaunch/version.rb +1 -1
- metadata +5 -5
data/.gitignore
CHANGED
@@ -1,31 +1,35 @@
|
|
1
1
|
<h1>Soft Launch: <%=@softlaunch.name%></h1>
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
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
|
-
<
|
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
|
-
<
|
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
|
-
</
|
31
|
-
|
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%>
|
data/lib/softlaunch/accessors.rb
CHANGED
data/lib/softlaunch/version.rb
CHANGED
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.
|
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:
|
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: &
|
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: *
|
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.
|
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.
|