spinebox 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
data/README.textile CHANGED
@@ -32,7 +32,7 @@ $ spinebox generate view post
32
32
  h4. Scaffold
33
33
 
34
34
  bc.. # Or scaffold all three of them
35
- $ spinebox scaffold post title author body
35
+ $ spinebox generate scaffold post title author body
36
36
 
37
37
  h4. Compile project
38
38
 
data/bin/spinebox CHANGED
@@ -67,7 +67,8 @@ Spinebox::Command.dispatch do
67
67
  end
68
68
 
69
69
  # Scaffold Generator
70
- on "scaffold MODEL [attributes]", "Scaffold a model, view and a controller", :if => proc { ['scaffold'].include?(ARGV.first)}, :type => :scaffold do
70
+ on "generate scaffold MODEL [attributes]", "Scaffold a model, view and a controller", :if => proc { ['generate', 'g'].include?(ARGV.first) and ['scaffold', 's'].include?(ARGV[1])}, :type => :scaffold do
71
+ ARGV.shift
71
72
  ARGV.shift
72
73
  name = ARGV.shift
73
74
  model = Spinebox::Generator::Model.new(name, ARGV)
@@ -63,6 +63,7 @@ module Spinebox
63
63
  def run!
64
64
  return false unless @options[:if].call
65
65
  @block.call
66
+ true
66
67
  end
67
68
 
68
69
  end
@@ -0,0 +1,10 @@
1
+ # Namespace
2
+ window.App = ->
3
+
4
+ # Remote endpoint
5
+ Spine.Model.host = "http://localhost:3000"
6
+
7
+ class App.Config
8
+
9
+ # Access this values from all over the app through App.Config.SOME_VALUE
10
+ # @SOME_VALUE : 12
@@ -5,7 +5,7 @@
5
5
  #= require ./lib/spine/ajax
6
6
  #= require ./lib/spine/route
7
7
 
8
- #= require ./app/config/namespace
8
+ #= require ./app/config/config
9
9
  #= require_tree ./app/controllers
10
10
  #= require_tree ./app/models
11
11
  #= require_tree ./app/views
@@ -1,3 +1,3 @@
1
1
  module Spinebox
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spinebox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
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: 2012-05-10 00:00:00.000000000 Z
12
+ date: 2012-05-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sprockets
16
- requirement: &70159798808960 !ruby/object:Gem::Requirement
16
+ requirement: &70140945498360 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 2.1.2
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70159798808960
24
+ version_requirements: *70140945498360
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rack
27
- requirement: &70159798808460 !ruby/object:Gem::Requirement
27
+ requirement: &70140945497860 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.4.1
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70159798808460
35
+ version_requirements: *70140945497860
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: coffee-script
38
- requirement: &70159798808000 !ruby/object:Gem::Requirement
38
+ requirement: &70140945497400 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.2.0
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70159798808000
46
+ version_requirements: *70140945497400
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: eco
49
- requirement: &70159798807540 !ruby/object:Gem::Requirement
49
+ requirement: &70140943507340 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 1.0.0
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70159798807540
57
+ version_requirements: *70140943507340
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: sass
60
- requirement: &70159798807080 !ruby/object:Gem::Requirement
60
+ requirement: &70140945531040 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 3.1.15
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70159798807080
68
+ version_requirements: *70140945531040
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: colorize
71
- requirement: &70159796968900 !ruby/object:Gem::Requirement
71
+ requirement: &70140945530580 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 0.5.8
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *70159796968900
79
+ version_requirements: *70140945530580
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: activesupport
82
- requirement: &70159796963540 !ruby/object:Gem::Requirement
82
+ requirement: &70140945530120 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: 3.2.2
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *70159796963540
90
+ version_requirements: *70140945530120
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: thin
93
- requirement: &70159798822760 !ruby/object:Gem::Requirement
93
+ requirement: &70140945529660 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ! '>='
@@ -98,7 +98,7 @@ dependencies:
98
98
  version: 1.3.1
99
99
  type: :runtime
100
100
  prerelease: false
101
- version_requirements: *70159798822760
101
+ version_requirements: *70140945529660
102
102
  description: A ready to use spine.js rack skeleton builder with development server,
103
103
  routes, config and precompile support
104
104
  email:
@@ -126,7 +126,7 @@ files:
126
126
  - lib/spinebox/templates/app/Gemfile
127
127
  - lib/spinebox/templates/app/Rakefile
128
128
  - lib/spinebox/templates/app/app/assets/images/.gitignore
129
- - lib/spinebox/templates/app/app/assets/javascripts/app/config/namespace.js.coffee
129
+ - lib/spinebox/templates/app/app/assets/javascripts/app/config/config.js.coffee
130
130
  - lib/spinebox/templates/app/app/assets/javascripts/app/config/routes.js.coffee
131
131
  - lib/spinebox/templates/app/app/assets/javascripts/app/controllers/.gitignore
132
132
  - lib/spinebox/templates/app/app/assets/javascripts/app/controllers/root.js.coffee