jinda 0.1.0 → 0.1.6.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +19 -11
- data/Rakefile +3 -1
- data/bin/console +1 -1
- data/lib/generators/jinda/config_generator.rb +23 -9
- data/lib/generators/jinda/install_generator.rb +31 -22
- data/lib/generators/jinda/minitest_generator.rb +30 -0
- data/lib/generators/jinda/rspec_generator.rb +30 -0
- data/lib/generators/jinda/templates/.env +2 -0
- data/lib/generators/jinda/templates/app/assets/images/facebook-continue-button.png +0 -0
- data/lib/generators/jinda/templates/app/assets/images/google-continue-button.png +0 -0
- data/lib/generators/jinda/templates/app/assets/javascripts/jqm/jquery.mobile.datebox.js +10 -4
- data/lib/generators/jinda/templates/app/assets/stylesheets/application.css.scss +2 -1
- data/lib/generators/jinda/templates/app/assets/stylesheets/jqm/app.scss +84 -0
- data/lib/generators/jinda/templates/app/assets/stylesheets/jqm/social.scss +133 -0
- data/lib/generators/jinda/templates/app/controllers/articles_controller.rb +17 -1
- data/lib/generators/jinda/templates/app/controllers/{ctrs_controller.rb → ctrs_controller.rb-gem-test} +0 -0
- data/lib/generators/jinda/templates/app/controllers/jinda_controller.rb +11 -3
- data/lib/generators/jinda/templates/app/jinda/index.mm +2 -2
- data/lib/generators/jinda/templates/app/jinda/template/linkview.haml +21 -0
- data/lib/generators/jinda/templates/app/models/jinda/module.rb +1 -1
- data/lib/generators/jinda/templates/app/models/user.rb +4 -2
- data/lib/generators/jinda/templates/app/views/jinda/_menu.haml +3 -1
- data/lib/generators/jinda/templates/app/views/jinda/_menu_mm.haml +17 -2
- data/lib/generators/jinda/templates/app/views/jinda/_static.haml +0 -10
- data/lib/generators/jinda/templates/app/views/jinda/index.html.haml +4 -3
- data/lib/generators/jinda/templates/app/views/jinda/run_form.haml +1 -1
- data/lib/generators/jinda/templates/app/views/layouts/jqm/_full.haml +11 -11
- data/lib/generators/jinda/templates/spec/controllers/articles_controller_spec.rb +155 -0
- data/lib/generators/jinda/templates/spec/helpers/rails_helper.rb +46 -0
- data/lib/generators/jinda/templates/spec/helpers/spec_helper.rb +96 -0
- data/lib/generators/jinda/templates/spec/models/user_spec.rb +26 -0
- data/lib/generators/jinda/templates/spec/requests/jinda_routes_spec.rb +82 -0
- data/lib/generators/jinda/templates/spec/requests/password_resets_spec.rb +15 -0
- data/lib/generators/jinda/templates/test/application_system_test_case.rb +5 -0
- data/lib/generators/jinda/templates/test/integration/jinda_routes_test.rb +42 -0
- data/lib/generators/jinda/templates/test/test_helper.rb +6 -0
- data/lib/jinda/gemhelpers.rb +50 -0
- data/lib/jinda/helpers.rb +335 -30
- data/lib/jinda/railtie.rb +2 -2
- data/lib/jinda/version.rb +1 -1
- data/lib/tasks/jinda.rake +0 -169
- metadata +141 -21
- data/lib/generators/jinda/templates/app/assets/images/facebook-button.png +0 -0
- data/lib/generators/jinda/templates/app/assets/images/facebook-sign-in-button.png +0 -0
- data/lib/generators/jinda/templates/app/assets/stylesheets/jqm/rouge.css.erb +0 -11
- data/lib/generators/jinda/templates/spec/controllers/admins_controller_spec.rb +0 -5
- data/lib/generators/jinda/templates/spec/controllers/devs_controller_spec.rb +0 -5
- data/lib/generators/jinda/templates/spec/controllers/users_controller_spec.rb +0 -5
- data/lib/generators/jinda/templates/spec/helpers/admins_helper_spec.rb +0 -15
- data/lib/generators/jinda/templates/spec/helpers/devs_helper_spec.rb +0 -15
- data/lib/generators/jinda/templates/spec/helpers/users_helper_spec.rb +0 -15
- data/lib/generators/jinda/templates/spec/spec_helper.rb +0 -38
- data/test/jinda_test.rb +0 -7
- data/test/test_helper.rb +0 -4
Binary file
|
Binary file
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
# Specs in this file have access to a helper object that includes
|
4
|
-
# the AdminsHelper. For example:
|
5
|
-
#
|
6
|
-
# describe AdminsHelper do
|
7
|
-
# describe "string concat" do
|
8
|
-
# it "concats two strings with spaces" do
|
9
|
-
# helper.concat_strings("this","that").should == "this that"
|
10
|
-
# end
|
11
|
-
# end
|
12
|
-
# end
|
13
|
-
describe AdminsHelper do
|
14
|
-
pending "add some examples to (or delete) #{__FILE__}"
|
15
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
# Specs in this file have access to a helper object that includes
|
4
|
-
# the DevsHelper. For example:
|
5
|
-
#
|
6
|
-
# describe DevsHelper do
|
7
|
-
# describe "string concat" do
|
8
|
-
# it "concats two strings with spaces" do
|
9
|
-
# helper.concat_strings("this","that").should == "this that"
|
10
|
-
# end
|
11
|
-
# end
|
12
|
-
# end
|
13
|
-
describe DevsHelper do
|
14
|
-
pending "add some examples to (or delete) #{__FILE__}"
|
15
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
# Specs in this file have access to a helper object that includes
|
4
|
-
# the UsersHelper. For example:
|
5
|
-
#
|
6
|
-
# describe UsersHelper do
|
7
|
-
# describe "string concat" do
|
8
|
-
# it "concats two strings with spaces" do
|
9
|
-
# helper.concat_strings("this","that").should == "this that"
|
10
|
-
# end
|
11
|
-
# end
|
12
|
-
# end
|
13
|
-
describe UsersHelper do
|
14
|
-
pending "add some examples to (or delete) #{__FILE__}"
|
15
|
-
end
|
@@ -1,38 +0,0 @@
|
|
1
|
-
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
2
|
-
REQUEST.ENV["RAILS_ENV"] ||= 'test'
|
3
|
-
require File.expand_path("../../config/environment", __FILE__)
|
4
|
-
require 'rspec/rails'
|
5
|
-
require 'rspec/autorun'
|
6
|
-
|
7
|
-
# Requires supporting ruby files with custom matchers and macros, etc,
|
8
|
-
# in spec/support/ and its subdirectories.
|
9
|
-
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
|
10
|
-
|
11
|
-
RSpec.configure do |config|
|
12
|
-
# ## Mock Framework
|
13
|
-
#
|
14
|
-
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
|
15
|
-
#
|
16
|
-
# config.mock_with :mocha
|
17
|
-
# config.mock_with :flexmock
|
18
|
-
# config.mock_with :rr
|
19
|
-
|
20
|
-
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
21
|
-
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
22
|
-
|
23
|
-
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
24
|
-
# examples within a transaction, remove the following line or assign false
|
25
|
-
# instead of true.
|
26
|
-
config.use_transactional_fixtures = true
|
27
|
-
|
28
|
-
# If true, the base class of anonymous controllers will be inferred
|
29
|
-
# automatically. This will be the default behavior in future versions of
|
30
|
-
# rspec-rails.
|
31
|
-
config.infer_base_class_for_anonymous_controllers = false
|
32
|
-
|
33
|
-
# Run specs in random order to surface order dependencies. If you find an
|
34
|
-
# order dependency and want to debug it, you can fix the order by providing
|
35
|
-
# the seed, which is printed after each run.
|
36
|
-
# --seed 1234
|
37
|
-
config.order = "random"
|
38
|
-
end
|
data/test/jinda_test.rb
DELETED
data/test/test_helper.rb
DELETED