rusic 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/MIT-LICENCE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2011 Chris Mytton / Simpleweb
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -22,43 +22,9 @@ command line tool.
22
22
  rusic new example-theme
23
23
 
24
24
  cd example-theme
25
- rusic start
25
+ rusic server
26
26
 
27
- This will start up a server at http://localhost:4567/.
28
-
29
- ### Management
30
-
31
- To simulate the different states the bucket can be in you can, for the
32
- most part, use the web interface. However some things require custom
33
- settings, for this you can use the `rusic set` command.
34
-
35
- #### Bucket expires
36
-
37
- To set an expiry date on the bucket, use the following command:
38
-
39
- rusic set expires "in 3 hours"
40
-
41
- #### Bucket name
42
-
43
- rusic set name "My bucket"
44
-
45
- ## Features
46
-
47
- * Super long urls
48
- * Wide range of markdown examples
49
- * Ideas, comments and likes in different states
50
- * Toggle the timer for the bucket
51
- * Simulate log in and out
52
- * Flash messages
53
- * Custom fields
54
-
55
- ## Publishing themes
56
-
57
- Once you're happy with your theme, you'll want to publish it to your
58
- rusic bucket. This can also be done with the `rusic(1)` cli tool.
59
-
60
- The static assets will be shipped off to s3 for you, and the templates
61
- will be uploaded using the API.
27
+ This will start up a server at http://localhost:8080/.
62
28
 
63
29
  MIT Licenced
64
30
 
data/TODO.md ADDED
@@ -0,0 +1,33 @@
1
+ ### Management
2
+
3
+ To simulate the different states the bucket can be in you can, for the
4
+ most part, use the web interface. However some things require custom
5
+ settings, for this you can use the `rusic set` command.
6
+
7
+ #### Bucket expires
8
+
9
+ To set an expiry date on the bucket, use the following command:
10
+
11
+ rusic set expires "in 3 hours"
12
+
13
+ #### Bucket name
14
+
15
+ rusic set name "My bucket"
16
+
17
+ ## Features
18
+
19
+ * Super long urls
20
+ * Wide range of markdown examples
21
+ * Ideas, comments and likes in different states
22
+ * Toggle the timer for the bucket
23
+ * Simulate log in and out
24
+ * Flash messages
25
+ * Custom fields
26
+
27
+ ## Publishing themes
28
+
29
+ Once you're happy with your theme, you'll want to publish it to your
30
+ rusic bucket. This can also be done with the `rusic(1)` cli tool.
31
+
32
+ The static assets will be shipped off to s3 for you, and the templates
33
+ will be uploaded using the API.
@@ -46,6 +46,14 @@ module Rusic
46
46
  def copy_ideas_edit
47
47
  template('templates/ideas/edit.html.liquid', "#{name}/ideas/edit.html.liquid")
48
48
  end
49
+
50
+ def create_public_directories
51
+ empty_directory("#{name}/public")
52
+ empty_directory("#{name}/public/images")
53
+ empty_directory("#{name}/public/stylesheets")
54
+ empty_directory("#{name}/public/javascripts")
55
+ end
56
+
49
57
  end
50
58
  end
51
59
  end
data/lib/rusic/server.rb CHANGED
@@ -26,7 +26,7 @@ module Rusic
26
26
  get '/ideas/:id' do
27
27
  liquid :"ideas/show.html", :layout => :"layouts/subdomain.html", :locals => {
28
28
  :rusic => bucket,
29
- :idea => bucket['ideas'].select { |i| i['id'] == params[:id] }
29
+ :idea => bucket['ideas'].find { |i| i['id'] == params[:id] }
30
30
  }
31
31
  end
32
32
  end
data/lib/rusic/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rusic
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,131 +1,130 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rusic
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
4
5
  prerelease:
5
- version: 0.0.1
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Chris Mytton
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-08-09 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
12
+ date: 2011-08-19 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
16
15
  name: thor
17
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &2156985000 !ruby/object:Gem::Requirement
18
17
  none: false
19
- requirements:
18
+ requirements:
20
19
  - - ~>
21
- - !ruby/object:Gem::Version
20
+ - !ruby/object:Gem::Version
22
21
  version: 0.14.6
23
22
  type: :runtime
24
23
  prerelease: false
25
- version_requirements: *id001
26
- - !ruby/object:Gem::Dependency
24
+ version_requirements: *2156985000
25
+ - !ruby/object:Gem::Dependency
27
26
  name: sinatra
28
- requirement: &id002 !ruby/object:Gem::Requirement
27
+ requirement: &2156984500 !ruby/object:Gem::Requirement
29
28
  none: false
30
- requirements:
29
+ requirements:
31
30
  - - ~>
32
- - !ruby/object:Gem::Version
31
+ - !ruby/object:Gem::Version
33
32
  version: 1.1.4
34
33
  type: :runtime
35
34
  prerelease: false
36
- version_requirements: *id002
37
- - !ruby/object:Gem::Dependency
35
+ version_requirements: *2156984500
36
+ - !ruby/object:Gem::Dependency
38
37
  name: thin
39
- requirement: &id003 !ruby/object:Gem::Requirement
38
+ requirement: &2156984040 !ruby/object:Gem::Requirement
40
39
  none: false
41
- requirements:
40
+ requirements:
42
41
  - - ~>
43
- - !ruby/object:Gem::Version
42
+ - !ruby/object:Gem::Version
44
43
  version: 1.2.11
45
44
  type: :runtime
46
45
  prerelease: false
47
- version_requirements: *id003
48
- - !ruby/object:Gem::Dependency
46
+ version_requirements: *2156984040
47
+ - !ruby/object:Gem::Dependency
49
48
  name: liquid
50
- requirement: &id004 !ruby/object:Gem::Requirement
49
+ requirement: &2156983580 !ruby/object:Gem::Requirement
51
50
  none: false
52
- requirements:
51
+ requirements:
53
52
  - - ~>
54
- - !ruby/object:Gem::Version
53
+ - !ruby/object:Gem::Version
55
54
  version: 2.2.2
56
55
  type: :runtime
57
56
  prerelease: false
58
- version_requirements: *id004
59
- - !ruby/object:Gem::Dependency
57
+ version_requirements: *2156983580
58
+ - !ruby/object:Gem::Dependency
60
59
  name: rake
61
- requirement: &id005 !ruby/object:Gem::Requirement
60
+ requirement: &2156983120 !ruby/object:Gem::Requirement
62
61
  none: false
63
- requirements:
62
+ requirements:
64
63
  - - ~>
65
- - !ruby/object:Gem::Version
64
+ - !ruby/object:Gem::Version
66
65
  version: 0.9.0
67
66
  type: :development
68
67
  prerelease: false
69
- version_requirements: *id005
70
- - !ruby/object:Gem::Dependency
68
+ version_requirements: *2156983120
69
+ - !ruby/object:Gem::Dependency
71
70
  name: rspec
72
- requirement: &id006 !ruby/object:Gem::Requirement
71
+ requirement: &2156982660 !ruby/object:Gem::Requirement
73
72
  none: false
74
- requirements:
73
+ requirements:
75
74
  - - ~>
76
- - !ruby/object:Gem::Version
75
+ - !ruby/object:Gem::Version
77
76
  version: 2.6.0
78
77
  type: :development
79
78
  prerelease: false
80
- version_requirements: *id006
81
- - !ruby/object:Gem::Dependency
79
+ version_requirements: *2156982660
80
+ - !ruby/object:Gem::Dependency
82
81
  name: rack-test
83
- requirement: &id007 !ruby/object:Gem::Requirement
82
+ requirement: &2156982200 !ruby/object:Gem::Requirement
84
83
  none: false
85
- requirements:
84
+ requirements:
86
85
  - - ~>
87
- - !ruby/object:Gem::Version
88
- version: "0.6"
86
+ - !ruby/object:Gem::Version
87
+ version: '0.6'
89
88
  type: :development
90
89
  prerelease: false
91
- version_requirements: *id007
92
- - !ruby/object:Gem::Dependency
90
+ version_requirements: *2156982200
91
+ - !ruby/object:Gem::Dependency
93
92
  name: cucumber
94
- requirement: &id008 !ruby/object:Gem::Requirement
93
+ requirement: &2156981740 !ruby/object:Gem::Requirement
95
94
  none: false
96
- requirements:
95
+ requirements:
97
96
  - - ~>
98
- - !ruby/object:Gem::Version
99
- version: "1.0"
97
+ - !ruby/object:Gem::Version
98
+ version: '1.0'
100
99
  type: :development
101
100
  prerelease: false
102
- version_requirements: *id008
103
- - !ruby/object:Gem::Dependency
101
+ version_requirements: *2156981740
102
+ - !ruby/object:Gem::Dependency
104
103
  name: aruba
105
- requirement: &id009 !ruby/object:Gem::Requirement
104
+ requirement: &2156981280 !ruby/object:Gem::Requirement
106
105
  none: false
107
- requirements:
106
+ requirements:
108
107
  - - ~>
109
- - !ruby/object:Gem::Version
108
+ - !ruby/object:Gem::Version
110
109
  version: 0.4.3
111
110
  type: :development
112
111
  prerelease: false
113
- version_requirements: *id009
112
+ version_requirements: *2156981280
114
113
  description: Theming tool for rusic.com
115
- email:
114
+ email:
116
115
  - self@hecticjeff.net
117
- executables:
116
+ executables:
118
117
  - rusic
119
118
  extensions: []
120
-
121
119
  extra_rdoc_files: []
122
-
123
- files:
120
+ files:
124
121
  - .gitignore
125
122
  - .rvmrc
126
123
  - Gemfile
124
+ - MIT-LICENCE
127
125
  - README.md
128
126
  - Rakefile
127
+ - TODO.md
129
128
  - bin/rusic
130
129
  - features/rusic.feature
131
130
  - features/support/env.rb
@@ -145,38 +144,30 @@ files:
145
144
  - spec/rusic_spec.rb
146
145
  homepage: http://hq.rusic.com/theming
147
146
  licenses: []
148
-
149
147
  post_install_message:
150
148
  rdoc_options: []
151
-
152
- require_paths:
149
+ require_paths:
153
150
  - lib
154
- required_ruby_version: !ruby/object:Gem::Requirement
151
+ required_ruby_version: !ruby/object:Gem::Requirement
155
152
  none: false
156
- requirements:
157
- - - ">="
158
- - !ruby/object:Gem::Version
159
- hash: 1851497966701980921
160
- segments:
161
- - 0
162
- version: "0"
163
- required_rubygems_version: !ruby/object:Gem::Requirement
153
+ requirements:
154
+ - - ! '>='
155
+ - !ruby/object:Gem::Version
156
+ version: '0'
157
+ required_rubygems_version: !ruby/object:Gem::Requirement
164
158
  none: false
165
- requirements:
166
- - - ">="
167
- - !ruby/object:Gem::Version
168
- hash: 1851497966701980921
169
- segments:
170
- - 0
171
- version: "0"
159
+ requirements:
160
+ - - ! '>='
161
+ - !ruby/object:Gem::Version
162
+ version: '0'
172
163
  requirements: []
173
-
174
164
  rubyforge_project:
175
- rubygems_version: 1.8.5
165
+ rubygems_version: 1.8.8
176
166
  signing_key:
177
167
  specification_version: 3
178
- summary: Generate and manage themes for rusic.com, provides a local environment for rapid development
179
- test_files:
168
+ summary: Generate and manage themes for rusic.com, provides a local environment for
169
+ rapid development
170
+ test_files:
180
171
  - features/rusic.feature
181
172
  - features/support/env.rb
182
173
  - spec/rusic_spec.rb