koine-appgenerator 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f65cb174f1d501068b326707217904133a1b61a2
4
+ data.tar.gz: 03e22735f8c466ae8e2c4046ae45b901cbaf00c9
5
+ SHA512:
6
+ metadata.gz: 122db1bdb0ba12487812a6e7be8271546de5f309914801a8db21b581bfdd7bf14f49379b8d09ba60db75de1aeb2d9cc5fd460e476fd07e55017292f7e9a97ed2
7
+ data.tar.gz: 70b87b035dbb92eff9bfa64440e20cfd02b3b9e3e51a4ce519b97354bb0553cad572b713018b7bf781282264eef110d238aee6b00682cd865025948c5c938921
@@ -0,0 +1 @@
1
+ repo_token: YPLY4ONgbmackVfpEZ0BgMl7eiTokSv5A
@@ -0,0 +1,2 @@
1
+ tmp
2
+ coverage
@@ -0,0 +1,20 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 2.0.0
5
+ - 2.1.0
6
+ - 2.1.1
7
+ env:
8
+ - DB=sqlite
9
+ - DB=mysql
10
+ - DB=postgresql
11
+ script:
12
+ # - rake
13
+ - ruby test/*/*
14
+ before_script:
15
+ - mysql -e 'create database MyApp_test'
16
+ - psql -c 'create database MyApp_test' -U postgres
17
+ notifications:
18
+ email:
19
+ on_success: change
20
+ on_failure: always
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
@@ -0,0 +1,111 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ koine-appgenerator (0.9.0)
5
+ rails (>= 4.1, < 5)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actionmailer (4.1.7)
11
+ actionpack (= 4.1.7)
12
+ actionview (= 4.1.7)
13
+ mail (~> 2.5, >= 2.5.4)
14
+ actionpack (4.1.7)
15
+ actionview (= 4.1.7)
16
+ activesupport (= 4.1.7)
17
+ rack (~> 1.5.2)
18
+ rack-test (~> 0.6.2)
19
+ actionview (4.1.7)
20
+ activesupport (= 4.1.7)
21
+ builder (~> 3.1)
22
+ erubis (~> 2.7.0)
23
+ activemodel (4.1.7)
24
+ activesupport (= 4.1.7)
25
+ builder (~> 3.1)
26
+ activerecord (4.1.7)
27
+ activemodel (= 4.1.7)
28
+ activesupport (= 4.1.7)
29
+ arel (~> 5.0.0)
30
+ activesupport (4.1.7)
31
+ i18n (~> 0.6, >= 0.6.9)
32
+ json (~> 1.7, >= 1.7.7)
33
+ minitest (~> 5.1)
34
+ thread_safe (~> 0.1)
35
+ tzinfo (~> 1.1)
36
+ ansi (1.4.3)
37
+ arel (5.0.1.20140414130214)
38
+ builder (3.2.2)
39
+ coveralls (0.7.0)
40
+ multi_json (~> 1.3)
41
+ rest-client
42
+ simplecov (>= 0.7)
43
+ term-ansicolor
44
+ thor
45
+ erubis (2.7.0)
46
+ hike (1.2.3)
47
+ i18n (0.6.11)
48
+ json (1.8.1)
49
+ mail (2.6.1)
50
+ mime-types (>= 1.16, < 3)
51
+ mime-types (2.4.3)
52
+ minitest (5.4.2)
53
+ minitest-reporters (1.0.7)
54
+ ansi
55
+ builder
56
+ minitest (>= 5.0)
57
+ ruby-progressbar
58
+ multi_json (1.10.1)
59
+ rack (1.5.2)
60
+ rack-test (0.6.2)
61
+ rack (>= 1.0)
62
+ rails (4.1.7)
63
+ actionmailer (= 4.1.7)
64
+ actionpack (= 4.1.7)
65
+ actionview (= 4.1.7)
66
+ activemodel (= 4.1.7)
67
+ activerecord (= 4.1.7)
68
+ activesupport (= 4.1.7)
69
+ bundler (>= 1.3.0, < 2.0)
70
+ railties (= 4.1.7)
71
+ sprockets-rails (~> 2.0)
72
+ railties (4.1.7)
73
+ actionpack (= 4.1.7)
74
+ activesupport (= 4.1.7)
75
+ rake (>= 0.8.7)
76
+ thor (>= 0.18.1, < 2.0)
77
+ rake (10.3.2)
78
+ rest-client (1.6.7)
79
+ mime-types (>= 1.16)
80
+ ruby-progressbar (1.6.1)
81
+ simplecov (0.7.1)
82
+ multi_json (~> 1.0)
83
+ simplecov-html (~> 0.7.1)
84
+ simplecov-html (0.7.1)
85
+ sprockets (2.12.3)
86
+ hike (~> 1.2)
87
+ multi_json (~> 1.0)
88
+ rack (~> 1.0)
89
+ tilt (~> 1.1, != 1.3.0)
90
+ sprockets-rails (2.2.0)
91
+ actionpack (>= 3.0)
92
+ activesupport (>= 3.0)
93
+ sprockets (>= 2.8, < 4.0)
94
+ term-ansicolor (1.3.0)
95
+ tins (~> 1.0)
96
+ thor (0.19.1)
97
+ thread_safe (0.3.4)
98
+ tilt (1.4.1)
99
+ tins (1.3.0)
100
+ tzinfo (1.2.2)
101
+ thread_safe (~> 0.1)
102
+
103
+ PLATFORMS
104
+ ruby
105
+
106
+ DEPENDENCIES
107
+ coveralls
108
+ koine-appgenerator!
109
+ minitest
110
+ minitest-reporters
111
+ simplecov
data/LICENSE ADDED
File without changes
@@ -0,0 +1,20 @@
1
+ Copyright 2014 Marcelo Guilherme Jacobus Jr
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.
@@ -0,0 +1,38 @@
1
+ Koine App Generator
2
+ --------------------
3
+
4
+ A custom rails generatator
5
+
6
+ [![Build Status](https://travis-ci.org/mjacobus/koine-appgenerator.png?branch=master)](https://travis-ci.org/mjacobus/koine-appgenerator)
7
+ [![Coverage Status](https://coveralls.io/repos/mjacobus/koine-appgenerator/badge.png)](https://coveralls.io/r/mjacobus/koine-appgenerator)
8
+ [![Code Climate](https://codeclimate.com/github/mjacobus/koine-appgenerator.png)](https://codeclimate.com/github/mjacobus/koine-appgenerator)
9
+ [![Dependency Status](https://gemnasium.com/mjacobus/koine-appgenerator.png)](https://gemnasium.com/mjacobus/koine-appgenerator)
10
+ [![Gem Version](https://badge.fury.io/rb/koine-appgenerator.png)](http://badge.fury.io/rb/koine-appgenerator)
11
+
12
+ ## Instalation
13
+
14
+ Add this line to your application's Gemfile:
15
+
16
+ gem 'koine-appgenerator'
17
+
18
+ ## Usage
19
+ koine-appgenerator MyApp
20
+
21
+ ## TODO
22
+
23
+ - [Next features](https://github.com/mjacobus/koine-appgenerator/issues?labels=enhancement&page=1&state=open)
24
+
25
+ ## Authors
26
+
27
+ - [Marcelo Jacobus](https://github.com/mjacobus)
28
+
29
+
30
+ ## Contributing
31
+
32
+ 1. Fork it
33
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
34
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
35
+ 4. Push to the branch (`git push origin my-new-feature`)
36
+ 5. Create new Pull Request
37
+
38
+ ** Do not forget to write tests**
@@ -0,0 +1,12 @@
1
+ # encoding: UTF-8
2
+ require "bundler/gem_tasks"
3
+ require 'rake/testtask'
4
+ require 'rdoc/task'
5
+
6
+ desc "Run tests"
7
+ task default: :test
8
+
9
+ desc "Run tests"
10
+ task :test do
11
+ exec 'ruby test/*/*'
12
+ end
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env ruby
2
+ require 'pathname'
3
+
4
+ source_path = (Pathname.new(__FILE__).dirname + '../lib').expand_path
5
+ $LOAD_PATH << source_path
6
+
7
+ require 'koine-app_generator'
8
+
9
+ templates_root = File.expand_path(File.join("..", "templates"), File.dirname(__FILE__))
10
+ Koine::Generators::AppGenerator.source_root templates_root
11
+ Koine::Generators::AppGenerator.source_paths << Rails::Generators::AppGenerator.source_root << templates_root
12
+
13
+ Koine::Generators::AppGenerator.start
@@ -0,0 +1,35 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path('../lib', __FILE__)
3
+
4
+ require 'generators/version'
5
+
6
+ Gem::Specification.new do |s|
7
+ s.required_ruby_version = '>= 1.9.2'
8
+ s.add_dependency("rails", ">= 4.1", "< 5")
9
+ s.authors = ['Marcelo Jacobus']
10
+ s.email = 'marcelo.jacobus@gmail.com'
11
+ s.date = Date.today.strftime('%Y-%m-%d')
12
+
13
+ s.description = <<-HERE
14
+ koine-appgenerator is a custom rails app generator
15
+ HERE
16
+
17
+ s.executables = ['koine-appgenerator']
18
+ s.extra_rdoc_files = %w[README.md MIT-LICENSE]
19
+ s.files = `git ls-files`.split("\n")
20
+ s.homepage = 'http://github.com/mjacobus/koine-appgenerator'
21
+ s.license = 'MIT'
22
+ s.name = 'koine-appgenerator'
23
+ s.rdoc_options = ['--charset=UTF-8']
24
+ s.require_paths = ['lib']
25
+ s.summary = "Generate a rails with Marcelo Jacobus favorites gems and initial settings"
26
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
27
+ s.version = Koine::Generators::VERSION
28
+
29
+ s.add_development_dependency 'simplecov'
30
+ s.add_development_dependency 'coveralls'
31
+
32
+ # s.add_development_dependency 'capybara'
33
+ s.add_development_dependency 'minitest'
34
+ s.add_development_dependency 'minitest-reporters'
35
+ end
@@ -0,0 +1,9 @@
1
+ require 'rails/generators/rails/app/app_generator'
2
+
3
+ module Koine
4
+ module Generators
5
+ class AppGenerator < Rails::Generators::AppGenerator
6
+ source_paths << Rails::Generators::AppGenerator.source_root
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,5 @@
1
+ module Koine
2
+ module Generators
3
+ VERSION = '0.9.0'
4
+ end
5
+ end
@@ -0,0 +1,6 @@
1
+ module Koine
2
+ module Generators
3
+ end
4
+ end
5
+
6
+ require "generators/app_generator"
File without changes
@@ -0,0 +1,21 @@
1
+ require_relative '../test_helper'
2
+
3
+ module Koine
4
+ module Generators
5
+ class AppGeneratorTest < Rails::Generators::TestCase
6
+ destination APP_FOLDER
7
+ tests AppGenerator
8
+ setup :prepare_destination
9
+ arguments ['MyApp']
10
+
11
+ test "generates assets" do
12
+ run_generator
13
+
14
+ assert_file("MyApp/app/views/layouts/application.html.erb", /stylesheet_link_tag\s+'application', media: 'all', 'data-turbolinks-track' => true/)
15
+ assert_file("MyApp/app/views/layouts/application.html.erb", /javascript_include_tag\s+'application', 'data-turbolinks-track' => true/)
16
+ assert_file("MyApp/app/assets/stylesheets/application.css")
17
+ assert_file("MyApp/app/assets/javascripts/application.js")
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,37 @@
1
+ ENV["RAILS_ENV"] = "test"
2
+
3
+ # for some reason it raises in travis env
4
+ begin
5
+ # require 'simplecov'
6
+ # SimpleCov.start
7
+
8
+ require 'coveralls'
9
+ Coveralls.wear!
10
+ rescue LoadError
11
+ end
12
+
13
+ $:.unshift File.dirname(__FILE__)
14
+ $:.unshift File.dirname(__FILE__) + '/../lib'
15
+
16
+ require 'minitest/autorun'
17
+
18
+ # for some reason it raises in travis env
19
+ begin
20
+ require "minitest/reporters"
21
+ # Minitest::Reporters.use! Minitest::Reporters::DefaultReporter.new
22
+ # Minitest::Reporters.use! Minitest::Reporters::RspecReporter.new
23
+ Minitest::Reporters.use!
24
+ rescue LoadError
25
+ end
26
+
27
+ # require 'mocha/setup'
28
+
29
+ APP_FOLDER = File.expand_path("../tmp", File.dirname(__FILE__))
30
+
31
+ # Add support to load paths so we can overwrite broken webrat setup
32
+ $:.unshift File.expand_path('../support', __FILE__)
33
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
34
+
35
+ # For generators
36
+ require "rails/generators/test_case"
37
+ require "koine-app_generator"
metadata ADDED
@@ -0,0 +1,141 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: koine-appgenerator
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.9.0
5
+ platform: ruby
6
+ authors:
7
+ - Marcelo Jacobus
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-10-31 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '4.1'
20
+ - - <
21
+ - !ruby/object:Gem::Version
22
+ version: '5'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '4.1'
30
+ - - <
31
+ - !ruby/object:Gem::Version
32
+ version: '5'
33
+ - !ruby/object:Gem::Dependency
34
+ name: simplecov
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - '>='
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ type: :development
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - '>='
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: coveralls
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - '>='
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ - !ruby/object:Gem::Dependency
62
+ name: minitest
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - '>='
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - '>='
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ - !ruby/object:Gem::Dependency
76
+ name: minitest-reporters
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - '>='
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ type: :development
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - '>='
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ description: |
90
+ koine-appgenerator is a custom rails app generator
91
+ email: marcelo.jacobus@gmail.com
92
+ executables:
93
+ - koine-appgenerator
94
+ extensions: []
95
+ extra_rdoc_files:
96
+ - README.md
97
+ - MIT-LICENSE
98
+ files:
99
+ - .coveralls.yml
100
+ - .gitignore
101
+ - .travis.yml
102
+ - Gemfile
103
+ - Gemfile.lock
104
+ - LICENSE
105
+ - MIT-LICENSE
106
+ - README.md
107
+ - Rakefile
108
+ - bin/koine-appgenerator
109
+ - koine-appgenerator.gemspec
110
+ - lib/generators/app_generator.rb
111
+ - lib/generators/version.rb
112
+ - lib/koine-app_generator.rb
113
+ - templates/.gitkeep
114
+ - test/generators/app_generator_test.rb
115
+ - test/test_helper.rb
116
+ homepage: http://github.com/mjacobus/koine-appgenerator
117
+ licenses:
118
+ - MIT
119
+ metadata: {}
120
+ post_install_message:
121
+ rdoc_options:
122
+ - --charset=UTF-8
123
+ require_paths:
124
+ - lib
125
+ required_ruby_version: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - '>='
128
+ - !ruby/object:Gem::Version
129
+ version: 1.9.2
130
+ required_rubygems_version: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - '>='
133
+ - !ruby/object:Gem::Version
134
+ version: '0'
135
+ requirements: []
136
+ rubyforge_project:
137
+ rubygems_version: 2.2.1
138
+ signing_key:
139
+ specification_version: 4
140
+ summary: Generate a rails with Marcelo Jacobus favorites gems and initial settings
141
+ test_files: []