cybele 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b440bf31983fffde4d1629d8e9bc98373fabd666
4
+ data.tar.gz: 4be9bf8c6b45088d46bb40f714ac21517473219f
5
+ SHA512:
6
+ metadata.gz: b4a6704f1d96a4471c54022821a4e8e80e1bef8de9290cdaf21b36de81f9752dcc4a06f67260b177f9db55f46dc251ac6832d1904d3be8d4c33f5631922cfa74
7
+ data.tar.gz: 9c032b2c2df9f4e58df1c65e38423be824e8f9cf378e9dd48f5b8f19813ed78b8dbd71f4a7d17ebb7e6e66fc5b27c76ea5154129f8af385e65026693f39eab65
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in cybele.gemspec
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,90 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ cybele (0.1.0)
5
+ bundler (~> 1.3)
6
+ rails (= 4.0.0.rc1)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ actionmailer (4.0.0.rc1)
12
+ actionpack (= 4.0.0.rc1)
13
+ mail (~> 2.5.3)
14
+ actionpack (4.0.0.rc1)
15
+ activesupport (= 4.0.0.rc1)
16
+ builder (~> 3.1.0)
17
+ erubis (~> 2.7.0)
18
+ rack (~> 1.5.2)
19
+ rack-test (~> 0.6.2)
20
+ activemodel (4.0.0.rc1)
21
+ activesupport (= 4.0.0.rc1)
22
+ builder (~> 3.1.0)
23
+ activerecord (4.0.0.rc1)
24
+ activemodel (= 4.0.0.rc1)
25
+ activerecord-deprecated_finders (~> 1.0.2)
26
+ activesupport (= 4.0.0.rc1)
27
+ arel (~> 4.0.0)
28
+ activerecord-deprecated_finders (1.0.2)
29
+ activesupport (4.0.0.rc1)
30
+ i18n (~> 0.6, >= 0.6.4)
31
+ minitest (~> 4.2)
32
+ multi_json (~> 1.3)
33
+ thread_safe (~> 0.1)
34
+ tzinfo (~> 0.3.37)
35
+ arel (4.0.0)
36
+ atomic (1.1.8)
37
+ builder (3.1.4)
38
+ erubis (2.7.0)
39
+ hike (1.2.2)
40
+ i18n (0.6.4)
41
+ mail (2.5.3)
42
+ i18n (>= 0.4.0)
43
+ mime-types (~> 1.16)
44
+ treetop (~> 1.4.8)
45
+ mime-types (1.23)
46
+ minitest (4.7.4)
47
+ multi_json (1.7.2)
48
+ polyglot (0.3.3)
49
+ rack (1.5.2)
50
+ rack-test (0.6.2)
51
+ rack (>= 1.0)
52
+ rails (4.0.0.rc1)
53
+ actionmailer (= 4.0.0.rc1)
54
+ actionpack (= 4.0.0.rc1)
55
+ activerecord (= 4.0.0.rc1)
56
+ activesupport (= 4.0.0.rc1)
57
+ bundler (>= 1.3.0, < 2.0)
58
+ railties (= 4.0.0.rc1)
59
+ sprockets-rails (~> 2.0.0.rc4)
60
+ railties (4.0.0.rc1)
61
+ actionpack (= 4.0.0.rc1)
62
+ activesupport (= 4.0.0.rc1)
63
+ rake (>= 0.8.7)
64
+ thor (>= 0.18.1, < 2.0)
65
+ rake (10.0.4)
66
+ sprockets (2.9.3)
67
+ hike (~> 1.2)
68
+ multi_json (~> 1.0)
69
+ rack (~> 1.0)
70
+ tilt (~> 1.1, != 1.3.0)
71
+ sprockets-rails (2.0.0.rc4)
72
+ actionpack (>= 3.0)
73
+ activesupport (>= 3.0)
74
+ sprockets (~> 2.8)
75
+ thor (0.18.1)
76
+ thread_safe (0.1.0)
77
+ atomic
78
+ tilt (1.4.0)
79
+ treetop (1.4.12)
80
+ polyglot
81
+ polyglot (>= 0.3.1)
82
+ tzinfo (0.3.37)
83
+
84
+ PLATFORMS
85
+ ruby
86
+
87
+ DEPENDENCIES
88
+ bundler (~> 1.3)
89
+ cybele!
90
+ rake
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 lab2023 - internet technologies
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,51 @@
1
+ # Cybele
2
+
3
+ NOTE: Don't use this gem until v1.0.0
4
+
5
+ This is yet an other Rails Template which inspired from [Syspenders](https://github.com/thoughtbot/suspenders)
6
+
7
+ **Cybele** pron.: /ˈsɪbɨliː/ was an originally Anatolian mother goddess. Little is known of her oldest Anatolian cults, other than her association with mountains, hawks and lions. She may have been Phrygia's State deity; her Phrygian cult was adopted and adapted by Greek colonists of Asia Minor, and spread from there to mainland Greece and its more distant western colonies from around the 6th century BCE.
8
+
9
+ ## Requirements
10
+
11
+ Before generating your application, you will need:
12
+
13
+ * Ruby 2.0
14
+ * Rails 4.0
15
+
16
+ ## Usage
17
+
18
+ ```ruby
19
+ cybele PROJECT_NAME
20
+ ```
21
+
22
+ ## What cybele do and included?
23
+
24
+
25
+ ## Bugs and Feedback
26
+
27
+ If you discover any bugs or want to drop a line, feel free to create an issue on GitHub.
28
+
29
+ http://github.com/lab2023/cybele/issues
30
+
31
+ ## Contributing
32
+
33
+ Once you've made your great commits:
34
+
35
+ 1. Fork Template
36
+ 2. Create a topic branch - `git checkout -b my_branch`
37
+ 3. Push to your branch - `git push origin my_branch`
38
+ 4. Create a Pull Request from your branch
39
+ 5. That's it!
40
+
41
+ ## Credits
42
+
43
+ Cybele is maintained and funded by [lab2023 - internet technologies](http://lab2023.com/)
44
+
45
+ Thank you to all the [contributors!](https://github.com/lab2023/cybele/graphs/contributors)
46
+
47
+ The names and logos for lab2023 are trademarks of lab2023, inc.
48
+
49
+ ## License
50
+
51
+ Copyright 2012 lab2023 – internet technologies
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
data/bin/cybele ADDED
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require File.expand_path(File.join('..', 'lib', 'cybele', 'generators', 'app_generator'), File.dirname(__FILE__))
4
+ require File.expand_path(File.join('..', 'lib', 'cybele', 'app_builder'), File.dirname(__FILE__))
5
+
6
+ templates_root = File.expand_path(File.join("..", "templates"), File.dirname(__FILE__))
7
+ Cybele::AppGenerator.source_root templates_root
8
+ Cybele::AppGenerator.source_paths << Rails::Generators::AppGenerator.source_root << templates_root
9
+ Cybele::AppGenerator.start
data/cybele.gemspec ADDED
@@ -0,0 +1,29 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'cybele/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'cybele'
8
+ spec.version = Cybele::VERSION
9
+ spec.authors = %w[lab2023]
10
+ spec.email = %w[info@lab2023.com]
11
+ spec.description = %q{Yet another rails template gem}
12
+ spec.summary = %q{Yet another rails template gem}
13
+ spec.homepage = 'https://github.com/lab2023/cybele'
14
+ spec.license = 'MIT'
15
+
16
+ spec.required_ruby_version = '>= 2.0.0'
17
+ spec.add_dependency 'bundler', '~> 1.3'
18
+ spec.add_dependency 'rails', '4.0.0.rc1'
19
+
20
+ spec.files = `git ls-files`.split($/)
21
+ spec.executables = %w[cybele]
22
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
23
+ spec.require_paths = %w[lib]
24
+
25
+ spec.add_development_dependency "bundler", "~> 1.3"
26
+ spec.add_development_dependency "rake"
27
+
28
+ spec.extra_rdoc_files = %w[README.md LICENSE.txt]
29
+ end
@@ -0,0 +1,22 @@
1
+ module Cybele
2
+ class AppBuilder < Rails::AppBuilder
3
+
4
+ include Thor::Actions
5
+ include Thor::Shell
6
+
7
+ def add_readme_md
8
+ template 'README.md.erb', 'README.md', :force => true
9
+ end
10
+
11
+ def remove_public_index
12
+ say 'public'
13
+ remove_file 'public/index.html'
14
+ end
15
+
16
+ def remove_readme_rdoc
17
+ say 'readme'
18
+ remove_file 'README.rdoc'
19
+ end
20
+
21
+ end
22
+ end
@@ -0,0 +1,40 @@
1
+ require 'rails/generators'
2
+ require 'rails/generators/rails/app/app_generator'
3
+
4
+ module Cybele
5
+ class AppGenerator < Rails::Generators::AppGenerator
6
+ class_option :database, :type => :string, :aliases => '-d', :default => 'postgresql',
7
+ :desc => "Preconfigure for selected database (options: #{DATABASES.join('/')})"
8
+
9
+ class_option :skip_test_unit, :type => :boolean, :aliases => '-T', :default => true,
10
+ :desc => 'Skip Test::Unit files'
11
+
12
+ def finish_template
13
+ invoke :customization
14
+ super
15
+ end
16
+
17
+ def customization
18
+ invoke :add_readme_md
19
+ invoke :remove_files_we_dont_need
20
+ end
21
+
22
+ def add_readme_md
23
+ say 'Add README.md'
24
+ build :readme
25
+ end
26
+
27
+ def remove_files_we_dont_need
28
+ say 'Remove files we don\'t need'
29
+ build :remove_public_index
30
+ build :remove_readme_rdoc
31
+ end
32
+
33
+ protected
34
+
35
+ def get_builder_class
36
+ Cybele::AppBuilder
37
+ end
38
+
39
+ end
40
+ end
@@ -0,0 +1,3 @@
1
+ module Cybele
2
+ VERSION = '0.1.0'
3
+ end
@@ -0,0 +1,2 @@
1
+ # <%= app_name %>
2
+
metadata ADDED
@@ -0,0 +1,114 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: cybele
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - lab2023
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-05-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rails
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '='
32
+ - !ruby/object:Gem::Version
33
+ version: 4.0.0.rc1
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '='
39
+ - !ruby/object:Gem::Version
40
+ version: 4.0.0.rc1
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '1.3'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '1.3'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ description: Yet another rails template gem
70
+ email:
71
+ - info@lab2023.com
72
+ executables:
73
+ - cybele
74
+ extensions: []
75
+ extra_rdoc_files:
76
+ - README.md
77
+ - LICENSE.txt
78
+ files:
79
+ - Gemfile
80
+ - Gemfile.lock
81
+ - LICENSE.txt
82
+ - README.md
83
+ - Rakefile
84
+ - bin/cybele
85
+ - cybele.gemspec
86
+ - lib/cybele/app_builder.rb
87
+ - lib/cybele/generators/app_generator.rb
88
+ - lib/cybele/version.rb
89
+ - templates/README.md.erb
90
+ homepage: https://github.com/lab2023/cybele
91
+ licenses:
92
+ - MIT
93
+ metadata: {}
94
+ post_install_message:
95
+ rdoc_options: []
96
+ require_paths:
97
+ - lib
98
+ required_ruby_version: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - '>='
101
+ - !ruby/object:Gem::Version
102
+ version: 2.0.0
103
+ required_rubygems_version: !ruby/object:Gem::Requirement
104
+ requirements:
105
+ - - '>='
106
+ - !ruby/object:Gem::Version
107
+ version: '0'
108
+ requirements: []
109
+ rubyforge_project:
110
+ rubygems_version: 2.0.3
111
+ signing_key:
112
+ specification_version: 4
113
+ summary: Yet another rails template gem
114
+ test_files: []