modularize_sinatra 0.0.2 → 0.0.3
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/README.md
CHANGED
@@ -14,7 +14,7 @@ To generate the skeleton structure with custom controller:
|
|
14
14
|
|
15
15
|
To Start the app:
|
16
16
|
|
17
|
-
rackup -p
|
17
|
+
rackup -p 9292
|
18
18
|
|
19
19
|
It will generate a default index page for you, which can be accessed at:
|
20
20
|
|
@@ -24,7 +24,6 @@ You'll get the following directory structure with above command:
|
|
24
24
|
|
25
25
|
.
|
26
26
|
|-- Gemfile
|
27
|
-
|-- Gemfile.lock
|
28
27
|
|-- Rakefile
|
29
28
|
|-- config
|
30
29
|
| `-- environment.rb
|
@@ -36,14 +35,14 @@ You'll get the following directory structure with above command:
|
|
36
35
|
| `-- views
|
37
36
|
| `-- users
|
38
37
|
| `-- index.erb
|
39
|
-
|--
|
38
|
+
|-- myapp.rb
|
40
39
|
|-- public
|
41
40
|
|-- script
|
42
41
|
| |-- destroy
|
43
42
|
| `-- generate
|
44
43
|
|-- spec
|
45
44
|
| |-- controllers
|
46
|
-
| | `--
|
45
|
+
| | `-- user_spec.rb
|
47
46
|
| |-- spec_helper.rb
|
48
47
|
| `-- support
|
49
48
|
`-- tmp
|
@@ -42,7 +42,7 @@ class ModularizeSinatraGenerator < RubiGen::Base
|
|
42
42
|
m.template "spec/controllers/ping_spec.rb", "spec/controllers/ping_spec.rb"
|
43
43
|
else
|
44
44
|
m.template "lib/controllers/controller.rb", "lib/controllers/#{controller_name}.rb"
|
45
|
-
m.template "spec/controllers/controller_spec.rb", "spec/controllers
|
45
|
+
m.template "spec/controllers/controller_spec.rb", "spec/controllers/#{controller_name}_spec.rb"
|
46
46
|
m.directory "lib/views/#{controller_name.pluralize}"
|
47
47
|
m.template "lib/views/index.erb", "lib/views/#{controller_name.pluralize}/index.erb"
|
48
48
|
end
|
metadata
CHANGED
@@ -1,56 +1,56 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: modularize_sinatra
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 0
|
8
|
-
- 2
|
9
|
-
version: 0.0.2
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.3
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Ankit Goyal
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
dependencies:
|
20
|
-
- !ruby/object:Gem::Dependency
|
21
|
-
type: :runtime
|
22
|
-
version_requirements: &id001 !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
segments:
|
27
|
-
- 0
|
28
|
-
version: "0"
|
12
|
+
date: 2013-04-08 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
29
15
|
name: rake
|
30
|
-
requirement:
|
31
|
-
|
32
|
-
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
33
22
|
type: :runtime
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
version:
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
41
31
|
name: rubigen
|
42
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :runtime
|
43
39
|
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
44
46
|
description: Code Generator for Sinatra
|
45
|
-
email:
|
47
|
+
email:
|
46
48
|
- ankit3goyal@gmail.com
|
47
|
-
executables:
|
49
|
+
executables:
|
48
50
|
- modularize_sinatra
|
49
51
|
extensions: []
|
50
|
-
|
51
52
|
extra_rdoc_files: []
|
52
|
-
|
53
|
-
files:
|
53
|
+
files:
|
54
54
|
- .gitignore
|
55
55
|
- Gemfile
|
56
56
|
- LICENSE
|
@@ -74,35 +74,34 @@ files:
|
|
74
74
|
- lib/modularize_sinatra/templates/spec/spec_helper.rb
|
75
75
|
- lib/modularize_sinatra/version.rb
|
76
76
|
- modularize_sinatra.gemspec
|
77
|
-
has_rdoc: true
|
78
77
|
homepage: https://github.com/goyalankit/modularize_sinatra
|
79
78
|
licenses: []
|
80
|
-
|
81
79
|
post_install_message:
|
82
80
|
rdoc_options: []
|
83
|
-
|
84
|
-
require_paths:
|
81
|
+
require_paths:
|
85
82
|
- lib
|
86
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
83
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
84
|
+
none: false
|
85
|
+
requirements:
|
86
|
+
- - ! '>='
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
segments:
|
91
90
|
- 0
|
92
|
-
|
93
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
91
|
+
hash: -1582015899814210886
|
92
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
|
+
none: false
|
94
|
+
requirements:
|
95
|
+
- - ! '>='
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0'
|
98
|
+
segments:
|
98
99
|
- 0
|
99
|
-
|
100
|
+
hash: -1582015899814210886
|
100
101
|
requirements: []
|
101
|
-
|
102
102
|
rubyforge_project:
|
103
|
-
rubygems_version: 1.
|
103
|
+
rubygems_version: 1.8.24
|
104
104
|
signing_key:
|
105
105
|
specification_version: 3
|
106
106
|
summary: Creates a modular skeleton for Sinatra application.
|
107
107
|
test_files: []
|
108
|
-
|