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.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +19 -11
  3. data/Rakefile +3 -1
  4. data/bin/console +1 -1
  5. data/lib/generators/jinda/config_generator.rb +23 -9
  6. data/lib/generators/jinda/install_generator.rb +31 -22
  7. data/lib/generators/jinda/minitest_generator.rb +30 -0
  8. data/lib/generators/jinda/rspec_generator.rb +30 -0
  9. data/lib/generators/jinda/templates/.env +2 -0
  10. data/lib/generators/jinda/templates/app/assets/images/facebook-continue-button.png +0 -0
  11. data/lib/generators/jinda/templates/app/assets/images/google-continue-button.png +0 -0
  12. data/lib/generators/jinda/templates/app/assets/javascripts/jqm/jquery.mobile.datebox.js +10 -4
  13. data/lib/generators/jinda/templates/app/assets/stylesheets/application.css.scss +2 -1
  14. data/lib/generators/jinda/templates/app/assets/stylesheets/jqm/app.scss +84 -0
  15. data/lib/generators/jinda/templates/app/assets/stylesheets/jqm/social.scss +133 -0
  16. data/lib/generators/jinda/templates/app/controllers/articles_controller.rb +17 -1
  17. data/lib/generators/jinda/templates/app/controllers/{ctrs_controller.rb → ctrs_controller.rb-gem-test} +0 -0
  18. data/lib/generators/jinda/templates/app/controllers/jinda_controller.rb +11 -3
  19. data/lib/generators/jinda/templates/app/jinda/index.mm +2 -2
  20. data/lib/generators/jinda/templates/app/jinda/template/linkview.haml +21 -0
  21. data/lib/generators/jinda/templates/app/models/jinda/module.rb +1 -1
  22. data/lib/generators/jinda/templates/app/models/user.rb +4 -2
  23. data/lib/generators/jinda/templates/app/views/jinda/_menu.haml +3 -1
  24. data/lib/generators/jinda/templates/app/views/jinda/_menu_mm.haml +17 -2
  25. data/lib/generators/jinda/templates/app/views/jinda/_static.haml +0 -10
  26. data/lib/generators/jinda/templates/app/views/jinda/index.html.haml +4 -3
  27. data/lib/generators/jinda/templates/app/views/jinda/run_form.haml +1 -1
  28. data/lib/generators/jinda/templates/app/views/layouts/jqm/_full.haml +11 -11
  29. data/lib/generators/jinda/templates/spec/controllers/articles_controller_spec.rb +155 -0
  30. data/lib/generators/jinda/templates/spec/helpers/rails_helper.rb +46 -0
  31. data/lib/generators/jinda/templates/spec/helpers/spec_helper.rb +96 -0
  32. data/lib/generators/jinda/templates/spec/models/user_spec.rb +26 -0
  33. data/lib/generators/jinda/templates/spec/requests/jinda_routes_spec.rb +82 -0
  34. data/lib/generators/jinda/templates/spec/requests/password_resets_spec.rb +15 -0
  35. data/lib/generators/jinda/templates/test/application_system_test_case.rb +5 -0
  36. data/lib/generators/jinda/templates/test/integration/jinda_routes_test.rb +42 -0
  37. data/lib/generators/jinda/templates/test/test_helper.rb +6 -0
  38. data/lib/jinda/gemhelpers.rb +50 -0
  39. data/lib/jinda/helpers.rb +335 -30
  40. data/lib/jinda/railtie.rb +2 -2
  41. data/lib/jinda/version.rb +1 -1
  42. data/lib/tasks/jinda.rake +0 -169
  43. metadata +141 -21
  44. data/lib/generators/jinda/templates/app/assets/images/facebook-button.png +0 -0
  45. data/lib/generators/jinda/templates/app/assets/images/facebook-sign-in-button.png +0 -0
  46. data/lib/generators/jinda/templates/app/assets/stylesheets/jqm/rouge.css.erb +0 -11
  47. data/lib/generators/jinda/templates/spec/controllers/admins_controller_spec.rb +0 -5
  48. data/lib/generators/jinda/templates/spec/controllers/devs_controller_spec.rb +0 -5
  49. data/lib/generators/jinda/templates/spec/controllers/users_controller_spec.rb +0 -5
  50. data/lib/generators/jinda/templates/spec/helpers/admins_helper_spec.rb +0 -15
  51. data/lib/generators/jinda/templates/spec/helpers/devs_helper_spec.rb +0 -15
  52. data/lib/generators/jinda/templates/spec/helpers/users_helper_spec.rb +0 -15
  53. data/lib/generators/jinda/templates/spec/spec_helper.rb +0 -38
  54. data/test/jinda_test.rb +0 -7
  55. data/test/test_helper.rb +0 -4
@@ -1,11 +0,0 @@
1
- <%= Rouge::Themes::Github.render(:scope => '.highlight, code') %>
2
-
3
- .highlight {
4
- background-color: #f5f7f9;
5
- padding: 1em;
6
- }
7
-
8
- .highlight .err {
9
- color: #a61717;
10
- background-color: #f5f7f9;
11
- }
@@ -1,5 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe AdminsController do
4
-
5
- end
@@ -1,5 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe DevsController do
4
-
5
- end
@@ -1,5 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe UsersController do
4
-
5
- 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 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
@@ -1,7 +0,0 @@
1
- require "test_helper"
2
-
3
- class JindaTest < Minitest::Test
4
- def test_that_it_has_a_version_number
5
- refute_nil ::Jinda::VERSION
6
- end
7
- end
data/test/test_helper.rb DELETED
@@ -1,4 +0,0 @@
1
- $LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
2
- require "mindapp2"
3
-
4
- require "minitest/autorun"