formie 0.9.5 → 0.9.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +11 -15
  3. data/.travis.yml +11 -15
  4. data/.watchr +52 -0
  5. data/Appraisals +9 -0
  6. data/Gemfile +10 -2
  7. data/Rakefile +1 -5
  8. data/formie.gemspec +8 -13
  9. data/gemfiles/rails_5.0.gemfile +17 -0
  10. data/gemfiles/rails_5.1.gemfile +17 -0
  11. data/lib/formie/engine.rb +1 -0
  12. data/lib/formie/version.rb +1 -1
  13. data/test/controllers/orders_test.rb +1 -0
  14. data/test/internal/app/controllers/application_controller.rb +8 -0
  15. data/{spec → test}/internal/app/controllers/orders_controller.rb +0 -0
  16. data/{spec → test}/internal/app/formies/application/copyright.html.erb +0 -0
  17. data/{spec → test}/internal/app/formies/forms/builtins.html.erb +0 -0
  18. data/{spec → test}/internal/app/formies/forms/l_text_field.html.erb +0 -0
  19. data/{spec → test}/internal/app/formies/templates/hello.slim +0 -0
  20. data/{spec → test}/internal/app/formies/templates/l_text_field.html.erb +0 -0
  21. data/{spec → test}/internal/app/formies/templates/labelled.html.erb +0 -0
  22. data/test/internal/app/models/application_record.rb +3 -0
  23. data/test/internal/app/models/order.rb +7 -0
  24. data/{spec → test}/internal/app/views/layouts/application.html.erb +1 -1
  25. data/{spec → test}/internal/app/views/orders/_form.html.erb +0 -0
  26. data/{spec → test}/internal/app/views/orders/_new.html.erb +0 -0
  27. data/{spec → test}/internal/app/views/orders/index.html.erb +0 -0
  28. data/{spec → test}/internal/app/views/orders/new.html.erb +0 -0
  29. data/{spec → test}/internal/app/views/orders/show.html.erb +1 -1
  30. data/{spec → test}/internal/config/database.yml +0 -0
  31. data/{spec → test}/internal/config/routes.rb +0 -0
  32. data/test/internal/config/secrets.yml +8 -0
  33. data/test/internal/db/migrate/20141016161801_create_orders.rb +10 -0
  34. data/{spec → test}/internal/db/schema.rb +1 -1
  35. data/test/test_helper.rb +15 -11
  36. metadata +65 -115
  37. data/gemfiles/rails5_0.gemfile +0 -5
  38. data/gemfiles/rails5_1.gemfile +0 -5
  39. data/spec/internal/app/controllers/application_controller.rb +0 -3
  40. data/spec/internal/app/models/order.rb +0 -7
  41. data/spec/internal/public/favicon.ico +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 495085a5dc42518c69ae875b7e7c069827f30443
4
- data.tar.gz: 4333438742a0725e4a5e0998b2f6471684bf8194
3
+ metadata.gz: d0ecea9d4cb08edcb6d0835029d4bdb4435a4a66
4
+ data.tar.gz: 75d419e1df16150b5acfc7a2a5e2eb4f00766ed2
5
5
  SHA512:
6
- metadata.gz: ebc7005bf8979dfa741ca881bc2f3b831c8820d7e71dcd44987ba80c4d0bf3f9eb71b0d5d882d9600a7c196d39dbb4da118de8fe401f47fbe4f9d2cb5081a3f6
7
- data.tar.gz: d0a240d84e7da8133e406242f4cd8004802f1ca70e151e7d3d76d487a919dac2b233614fb48a2dab36cf7dc6a899e888071a6ecfed9d5f8fef0422f3bf8e59cc
6
+ metadata.gz: b1ce8683076ee6b8acf30c8b3e6cea38af76e83fac9f48a82884c11c1f5b6a132948422db57f8e84c89d675e0a7ee5010a821fc8f068f36f04a09365ffbceb27
7
+ data.tar.gz: 8706ba87d94d19a89d21301b9ea4114a9751c58636f3ffdaaac6a36a65c31868d4835051666226212f85dfd6cc449522011544b9b31d4b4a540f08881004540c
data/.gitignore CHANGED
@@ -1,16 +1,12 @@
1
- *.gem
2
- .bundle
3
- Gemfile.lock
4
- gemfiles/*.lock
5
- coverage/*
6
- pkg/*
7
-
8
- # Ignore the default SQLite database.
9
- /db/*.sqlite3
10
- /db/*.sqlite3-journal
11
- /spec/internal/db/*.sqlite3
1
+ .bundle/
2
+ coverage/
3
+ pkg/
4
+ test/internal/db/*.sqlite3
12
5
 
13
- # Ignore all logfiles and tempfiles.
14
- /spec/internal/log
15
- log
16
- tmp
6
+ *.gem
7
+ *.log
8
+ *.lock
9
+ **/*.gem
10
+ **/*.log
11
+ **/*.lock
12
+ test/internal/tmp/
data/.travis.yml CHANGED
@@ -1,32 +1,28 @@
1
1
  language: ruby
2
+ sudo: false
3
+
2
4
  bundler_args: --without production
3
5
  before_install: gem update bundler --no-document
4
6
  script: 'bundle exec rake test'
5
- sudo: false
6
-
7
- cache: bundler
8
7
 
9
8
  rvm:
10
9
  - 2.4.1
11
10
  - 2.4.0
12
- # - 2.3.3 # tested; reduce work for CI
13
- # - 2.2.6 # tested; reduce work for CI
11
+ # - 2.3.3 # tested
12
+ # - 2.2.6 # tested
14
13
 
15
14
  gemfile:
16
- - gemfiles/rails5_0.gemfile
17
- - gemfiles/rails5_1.gemfile
18
-
19
- notifications:
20
- email: false
15
+ - gemfiles/rails_5.0.gemfile
16
+ - gemfiles/rails_5.1.gemfile
21
17
 
22
18
  matrix:
23
- exclude:
24
- - rvm: 2.4.0
25
- gemfile: gemfiles/rails4_2.gemfile
26
- # include:
27
- # - rvm: 2.3.3
19
+ # exclude:
20
+ # - rvm: 2.4.0
28
21
  # gemfile: gemfiles/rails4_2.gemfile
22
+ # include:
29
23
  # - rvm: 2.2.6
30
24
  # gemfile: gemfiles/rails4_2.gemfile
31
25
 
26
+ notifications:
27
+ email: false
32
28
  fast_finish: true
data/.watchr ADDED
@@ -0,0 +1,52 @@
1
+ HH = '#' * 22 unless defined?(HH)
2
+ H = '#' * 5 unless defined?(H)
3
+
4
+ def usage
5
+ puts <<-EOS
6
+ Ctrl-\\ or ctrl-4 Running all tests
7
+ Ctrl-C Exit
8
+ EOS
9
+ end
10
+
11
+ def run(cmd)
12
+ puts "#{HH} #{Time.now} #{HH}"
13
+ puts "#{H} #{cmd}"
14
+ system "/usr/bin/time --format '#{HH} Elapsed time %E' #{cmd}"
15
+ end
16
+
17
+ def run_it(type, file)
18
+ case type
19
+ when 'test'; run %Q{ruby -I"lib:test" -rubygems #{file}}
20
+ when 'spec'; run %Q{rspec -X #{file}}
21
+ else; puts "#{H} unknown type: #{type}, file: #{file}"
22
+ end
23
+ end
24
+
25
+ def run_all_tests
26
+ puts "\n#{HH} Running all tests #{HH}\n"
27
+ %w{test spec}.each { |dir| run "rake #{dir} RAILS_ENV=test" if File.exists?(dir) }
28
+ end
29
+
30
+ def run_matching_files(base)
31
+ base = base.split('_').first
32
+ %w{test spec}.each { |type|
33
+ files = Dir["#{type}/**/*.rb"].select { |file| file =~ /#{base}_.*\.rb/ }
34
+ run_it type, files.join(' ') unless files.empty?
35
+ }
36
+ end
37
+
38
+ %w{test spec}.each { |type|
39
+ watch("#{type}/#{type}_helper\.rb") { run_all_tests }
40
+ watch("#{type}/.*/*_#{type}\.rb") { |match| run_it type, match[0] }
41
+ }
42
+ %w{rb erb haml slim}.each { |type|
43
+ watch("app/.*/.*\.#{type}") { |m|
44
+ run_matching_files("#{m[0].split('/').at(2).split('.').first}")
45
+ }
46
+ }
47
+
48
+ # Ctrl-\ or ctrl-4
49
+ Signal.trap('QUIT') { run_all_tests }
50
+ # Ctrl-C
51
+ Signal.trap('INT') { abort("Interrupted\n") }
52
+ usage
data/Appraisals ADDED
@@ -0,0 +1,9 @@
1
+ appraise 'rails-5.0' do
2
+ gem 'rails', '~> 5.0.0'
3
+ gem 'dryer-config', '~> 5.0.0'
4
+ end
5
+
6
+ appraise 'rails-5.1' do
7
+ gem 'rails', '~> 5.1'
8
+ gem 'dryer-config', '~> 5.1'
9
+ end
data/Gemfile CHANGED
@@ -1,6 +1,14 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in .gemspec
4
3
  gemspec
5
4
 
6
- gem 'rails', '~> 5.1'
5
+ gem 'rails'
6
+
7
+ group :test do
8
+ gem 'observr'
9
+ gem 'simplecov', require: false
10
+ gem 'minitest'
11
+ gem 'capybara'
12
+ gem 'sqlite3'
13
+ gem 'slim'
14
+ end
data/Rakefile CHANGED
@@ -1,8 +1,4 @@
1
- require "bundler/gem_tasks"
2
-
3
- load 'rails/tasks/statistics.rake'
4
-
5
- Bundler::GemHelper.install_tasks
1
+ require 'bundler/setup'
6
2
 
7
3
  require 'rake/testtask'
8
4
 
data/formie.gemspec CHANGED
@@ -1,12 +1,13 @@
1
- $:.push File.expand_path('../lib', __FILE__)
1
+ lib = File.expand_path('../lib', __FILE__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
2
3
  require 'formie/version'
3
4
 
4
5
  Gem::Specification.new do |s|
5
6
  s.name = 'formie'
6
7
  s.version = Formie::VERSION
7
- s.summary = 'Formie is like a helper, but uses the notation of a partial.'
8
+ s.summary = 'Formie is like a Rails helper, but uses the notation of a partial.'
8
9
  s.description = <<-'END'
9
- Formie implements low level template-based helpers. It injects
10
+ Formie implements low level template-based Rails helpers. It injects
10
11
  the formies into the ActionView module. The form-bounded as well as
11
12
  the unbounded templates are supported. Still, the ActionView
12
13
  functionality (e.g. text_field) is kept untouched.
@@ -19,17 +20,11 @@ Gem::Specification.new do |s|
19
20
  s.platform = Gem::Platform::RUBY
20
21
 
21
22
  s.files = `git ls-files -z`.split("\x0")
22
- # s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
23
23
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
24
24
  s.require_paths = ['lib']
25
25
 
26
- s.add_development_dependency 'bundler'
27
- s.add_development_dependency 'rake'
28
- s.add_development_dependency 'slim'
29
-
30
- s.add_development_dependency 'combustion'
31
- s.add_development_dependency 'sqlite3'
32
- s.add_development_dependency 'simplecov'
33
- s.add_development_dependency 'minitest'
34
- s.add_development_dependency 'capybara'
26
+ s.add_development_dependency 'bundler', '~> 1'
27
+ s.add_development_dependency 'rake', '~> 12'
28
+ s.add_development_dependency 'appraisal', '~> 2'
29
+ s.add_development_dependency 'combustion', '~> 0'
35
30
  end
@@ -0,0 +1,17 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 5.0.0"
6
+ gem "dryer-config", "~> 5.0.0"
7
+
8
+ group :test do
9
+ gem "observr"
10
+ gem "simplecov", require: false
11
+ gem "minitest"
12
+ gem "capybara"
13
+ gem "sqlite3"
14
+ gem "slim"
15
+ end
16
+
17
+ gemspec path: "../"
@@ -0,0 +1,17 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 5.1"
6
+ gem "dryer-config", "~> 5.1"
7
+
8
+ group :test do
9
+ gem "observr"
10
+ gem "simplecov", require: false
11
+ gem "minitest"
12
+ gem "capybara"
13
+ gem "sqlite3"
14
+ gem "slim"
15
+ end
16
+
17
+ gemspec path: "../"
data/lib/formie/engine.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  module Formie
2
2
  class Engine < Rails::Engine
3
+ require 'slim'
3
4
  end
4
5
  end
@@ -1,3 +1,3 @@
1
1
  module Formie
2
- VERSION = '0.9.5'
2
+ VERSION = '0.9.11'
3
3
  end
@@ -5,6 +5,7 @@ class OrdersControllerTest < ActionController::TestCase
5
5
  test 'checking formie copyright' do
6
6
  get :index
7
7
  assert_response :success
8
+ # assert_not_nil assigns(:orders)
8
9
  assert_match(/copyright/, response.body)
9
10
  assert_match(/Copyright/, response.body)
10
11
  assert_match(/label/ , response.body)
@@ -0,0 +1,8 @@
1
+ class ApplicationController < ActionController::Base
2
+ protect_from_forgery with: :exception
3
+
4
+ before_action do
5
+ Formie.reload if 'development' == Rails.env
6
+ end
7
+
8
+ end
@@ -0,0 +1,3 @@
1
+ class ApplicationRecord < ActiveRecord::Base
2
+ self.abstract_class = true
3
+ end
@@ -0,0 +1,7 @@
1
+ class Order < ApplicationRecord
2
+
3
+ before_save do |row|
4
+ row.errors.add :base, 'panic' if row.name == 'error'
5
+ end
6
+
7
+ end
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <title>Dummy</title>
5
5
  <%#= stylesheet_link_tag "application" %>
6
- <%= javascript_include_tag "application" %>
6
+ <%#= javascript_include_tag "application" %>
7
7
  <%= csrf_meta_tags %>
8
8
  </head>
9
9
  <body>
@@ -1,3 +1,3 @@
1
1
  <%= form_for @order do |f| %>
2
- <%= render 'form', f: f %>
2
+ <%= render 'form', :f => f %>
3
3
  <% end %>
File without changes
File without changes
@@ -0,0 +1,8 @@
1
+ development:
2
+ secret_key_base: e0759094af00bb172148ef71ce3bfd3cb8ad688628bee51dd596b3c2e84aaf37b94136e5fe9d35e8685e4fcc1b145a3568d0675fdf88fa77751e405d454a80d5
3
+
4
+ test:
5
+ secret_key_base: ad8df0f94e834515e076f0259050f9dc722286a1d305cf4e650242c63cfe6f1a451c4c135e833c90b854720ebd38d741cdb50b9541ab6c505d45559cb5af62b0
6
+
7
+ production:
8
+ secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -0,0 +1,10 @@
1
+ class CreateOrders < ActiveRecord::Migration
2
+ def change
3
+ create_table :orders do |t|
4
+ t.string :name
5
+ t.string :qty
6
+
7
+ t.timestamps null: false
8
+ end
9
+ end
10
+ end
@@ -1,4 +1,4 @@
1
- ActiveRecord::Schema.define do
1
+ ActiveRecord::Schema.define(version: 20141016161801) do
2
2
 
3
3
  create_table "orders", force: true do |t|
4
4
  t.string "name"
data/test/test_helper.rb CHANGED
@@ -1,15 +1,19 @@
1
- require 'simplecov'
2
- SimpleCov.start "rails" do
3
- add_filter '/application_controller.rb/'
4
- end
1
+ #require 'simplecov'
2
+ #SimpleCov.start do
3
+ # add_filter '/test/'
4
+ #end
5
5
 
6
- # Configure Rails Environment
7
- ENV["RAILS_ENV"] = "test"
6
+ require "combustion"
7
+ Combustion.path = "test/internal"
8
+ Combustion.initialize! :all
8
9
 
9
- require 'combustion'
10
- Combustion.initialize! :active_record, :action_controller
11
-
12
- require "rails/test_help"
10
+ require 'rails/test_help'
13
11
  require 'minitest/autorun'
14
12
  require 'capybara/rails'
15
- require 'slim'
13
+
14
+ #class ActiveSupport::TestCase
15
+ # # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
16
+ # fixtures :all
17
+ #
18
+ # # Add more helper methods to be used by all tests here...
19
+ #end
metadata CHANGED
@@ -1,129 +1,73 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formie
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.9.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dittmar Krall
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-06 00:00:00.000000000 Z
11
+ date: 2017-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '1'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '12'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: '12'
41
41
  - !ruby/object:Gem::Dependency
42
- name: slim
42
+ name: appraisal
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: '2'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: '2'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: combustion
57
57
  requirement: !ruby/object:Gem::Requirement
58
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
- - !ruby/object:Gem::Dependency
70
- name: sqlite3
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: simplecov
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: minitest
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: capybara
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
59
+ - - "~>"
116
60
  - !ruby/object:Gem::Version
117
61
  version: '0'
118
62
  type: :development
119
63
  prerelease: false
120
64
  version_requirements: !ruby/object:Gem::Requirement
121
65
  requirements:
122
- - - ">="
66
+ - - "~>"
123
67
  - !ruby/object:Gem::Version
124
68
  version: '0'
125
69
  description: |2
126
- Formie implements low level template-based helpers. It injects
70
+ Formie implements low level template-based Rails helpers. It injects
127
71
  the formies into the ActionView module. The form-bounded as well as
128
72
  the unbounded templates are supported. Still, the ActionView
129
73
  functionality (e.g. text_field) is kept untouched.
@@ -137,6 +81,8 @@ files:
137
81
  - ".ruby-gemset"
138
82
  - ".ruby-version"
139
83
  - ".travis.yml"
84
+ - ".watchr"
85
+ - Appraisals
140
86
  - Gemfile
141
87
  - MIT-LICENSE
142
88
  - README.md
@@ -144,32 +90,34 @@ files:
144
90
  - config/initializers/formie.rb
145
91
  - formie.gemspec
146
92
  - gemfiles/rails4_2.gemfile
147
- - gemfiles/rails5_0.gemfile
148
- - gemfiles/rails5_1.gemfile
93
+ - gemfiles/rails_5.0.gemfile
94
+ - gemfiles/rails_5.1.gemfile
149
95
  - lib/formie.rb
150
96
  - lib/formie/engine.rb
151
97
  - lib/formie/version.rb
152
- - spec/internal/app/controllers/application_controller.rb
153
- - spec/internal/app/controllers/orders_controller.rb
154
- - spec/internal/app/formies/application/copyright.html.erb
155
- - spec/internal/app/formies/forms/builtins.html.erb
156
- - spec/internal/app/formies/forms/l_text_field.html.erb
157
- - spec/internal/app/formies/templates/hello.slim
158
- - spec/internal/app/formies/templates/l_text_field.html.erb
159
- - spec/internal/app/formies/templates/labelled.html.erb
160
- - spec/internal/app/models/order.rb
161
- - spec/internal/app/views/layouts/application.html.erb
162
- - spec/internal/app/views/orders/_form.html.erb
163
- - spec/internal/app/views/orders/_new.html.erb
164
- - spec/internal/app/views/orders/index.html.erb
165
- - spec/internal/app/views/orders/new.html.erb
166
- - spec/internal/app/views/orders/show.html.erb
167
- - spec/internal/config/database.yml
168
- - spec/internal/config/routes.rb
169
- - spec/internal/db/schema.rb
170
- - spec/internal/public/favicon.ico
171
98
  - test/controllers/orders_test.rb
172
99
  - test/integration/order_test.rb
100
+ - test/internal/app/controllers/application_controller.rb
101
+ - test/internal/app/controllers/orders_controller.rb
102
+ - test/internal/app/formies/application/copyright.html.erb
103
+ - test/internal/app/formies/forms/builtins.html.erb
104
+ - test/internal/app/formies/forms/l_text_field.html.erb
105
+ - test/internal/app/formies/templates/hello.slim
106
+ - test/internal/app/formies/templates/l_text_field.html.erb
107
+ - test/internal/app/formies/templates/labelled.html.erb
108
+ - test/internal/app/models/application_record.rb
109
+ - test/internal/app/models/order.rb
110
+ - test/internal/app/views/layouts/application.html.erb
111
+ - test/internal/app/views/orders/_form.html.erb
112
+ - test/internal/app/views/orders/_new.html.erb
113
+ - test/internal/app/views/orders/index.html.erb
114
+ - test/internal/app/views/orders/new.html.erb
115
+ - test/internal/app/views/orders/show.html.erb
116
+ - test/internal/config/database.yml
117
+ - test/internal/config/routes.rb
118
+ - test/internal/config/secrets.yml
119
+ - test/internal/db/migrate/20141016161801_create_orders.rb
120
+ - test/internal/db/schema.rb
173
121
  - test/test_helper.rb
174
122
  homepage: http://matique.de
175
123
  licenses:
@@ -194,27 +142,29 @@ rubyforge_project:
194
142
  rubygems_version: 2.6.12
195
143
  signing_key:
196
144
  specification_version: 4
197
- summary: Formie is like a helper, but uses the notation of a partial.
145
+ summary: Formie is like a Rails helper, but uses the notation of a partial.
198
146
  test_files:
199
- - spec/internal/app/controllers/application_controller.rb
200
- - spec/internal/app/controllers/orders_controller.rb
201
- - spec/internal/app/formies/application/copyright.html.erb
202
- - spec/internal/app/formies/forms/builtins.html.erb
203
- - spec/internal/app/formies/forms/l_text_field.html.erb
204
- - spec/internal/app/formies/templates/hello.slim
205
- - spec/internal/app/formies/templates/l_text_field.html.erb
206
- - spec/internal/app/formies/templates/labelled.html.erb
207
- - spec/internal/app/models/order.rb
208
- - spec/internal/app/views/layouts/application.html.erb
209
- - spec/internal/app/views/orders/_form.html.erb
210
- - spec/internal/app/views/orders/_new.html.erb
211
- - spec/internal/app/views/orders/index.html.erb
212
- - spec/internal/app/views/orders/new.html.erb
213
- - spec/internal/app/views/orders/show.html.erb
214
- - spec/internal/config/database.yml
215
- - spec/internal/config/routes.rb
216
- - spec/internal/db/schema.rb
217
- - spec/internal/public/favicon.ico
218
147
  - test/controllers/orders_test.rb
219
148
  - test/integration/order_test.rb
149
+ - test/internal/app/controllers/application_controller.rb
150
+ - test/internal/app/controllers/orders_controller.rb
151
+ - test/internal/app/formies/application/copyright.html.erb
152
+ - test/internal/app/formies/forms/builtins.html.erb
153
+ - test/internal/app/formies/forms/l_text_field.html.erb
154
+ - test/internal/app/formies/templates/hello.slim
155
+ - test/internal/app/formies/templates/l_text_field.html.erb
156
+ - test/internal/app/formies/templates/labelled.html.erb
157
+ - test/internal/app/models/application_record.rb
158
+ - test/internal/app/models/order.rb
159
+ - test/internal/app/views/layouts/application.html.erb
160
+ - test/internal/app/views/orders/_form.html.erb
161
+ - test/internal/app/views/orders/_new.html.erb
162
+ - test/internal/app/views/orders/index.html.erb
163
+ - test/internal/app/views/orders/new.html.erb
164
+ - test/internal/app/views/orders/show.html.erb
165
+ - test/internal/config/database.yml
166
+ - test/internal/config/routes.rb
167
+ - test/internal/config/secrets.yml
168
+ - test/internal/db/migrate/20141016161801_create_orders.rb
169
+ - test/internal/db/schema.rb
220
170
  - test/test_helper.rb
@@ -1,5 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec path: '..'
4
-
5
- gem 'rails', '~> 5.0'
@@ -1,5 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec path: '..'
4
-
5
- gem 'rails', '~> 5.1'
@@ -1,3 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
-
3
- end
@@ -1,7 +0,0 @@
1
- class Order < ActiveRecord::Base
2
-
3
- before_save { |row|
4
- row.errors.add(:base, 'panic') if row.name == 'error'
5
- }
6
-
7
- end
File without changes