cukemin 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/cukemin.gemspec +2 -2
- data/generators/cukemin/cukemin_generator.rb +45 -0
- data/generators/cukemin/templates/feature.feature +3 -3
- data/generators/cukemin/templates/views/_form.html.erb +3 -1
- data/generators/cukemin/templates/views/index.html.erb +1 -1
- data/spec/cukemin_generator_spec.rb +3 -2
- data/spec/debug.log +180 -0
- metadata +4 -4
data/Rakefile
CHANGED
data/cukemin.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{cukemin}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Paul Campbell"]
|
12
|
-
s.date = %q{2010-05-
|
12
|
+
s.date = %q{2010-05-25}
|
13
13
|
s.email = %q{paul@rslw.com}
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"README.md"
|
@@ -1,4 +1,45 @@
|
|
1
1
|
class CukeminGenerator < Rails::Generator::NamedBase
|
2
|
+
|
3
|
+
attr_accessor :name, :attributes, :controller_actions
|
4
|
+
|
5
|
+
def initialize(runtime_args, runtime_options = {})
|
6
|
+
super
|
7
|
+
usage if @args.empty?
|
8
|
+
|
9
|
+
@name = @args.first
|
10
|
+
@controller_actions = []
|
11
|
+
@attributes = []
|
12
|
+
@args[0..-1].each do |arg|
|
13
|
+
if arg == '!'
|
14
|
+
options[:invert] = true
|
15
|
+
elsif arg.include? ':'
|
16
|
+
@attributes << Rails::Generator::GeneratedAttribute.new(*arg.split(":"))
|
17
|
+
else
|
18
|
+
@controller_actions << arg
|
19
|
+
@controller_actions << 'create' if arg == 'new'
|
20
|
+
@controller_actions << 'update' if arg == 'edit'
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
@controller_actions.uniq!
|
25
|
+
@attributes.uniq!
|
26
|
+
|
27
|
+
if options[:invert] || @controller_actions.empty?
|
28
|
+
@controller_actions = all_actions - @controller_actions
|
29
|
+
end
|
30
|
+
|
31
|
+
if @attributes.empty?
|
32
|
+
options[:skip_model] = true # default to skipping model if no attributes passed
|
33
|
+
if model_exists?
|
34
|
+
model_columns_for_attributes.each do |column|
|
35
|
+
@attributes << Rails::Generator::GeneratedAttribute.new(column.name.to_s, column.type.to_s)
|
36
|
+
end
|
37
|
+
else
|
38
|
+
@attributes << Rails::Generator::GeneratedAttribute.new('name', 'string')
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
2
43
|
def manifest
|
3
44
|
record do |m|
|
4
45
|
# puts "#{module_name}, #{model_name}, #{class_name}, #{file_name}, #{file_path}"
|
@@ -62,6 +103,10 @@ class CukeminGenerator < Rails::Generator::NamedBase
|
|
62
103
|
def plural_path_helper
|
63
104
|
"#{File.dirname(file_path).gsub('/', '_')}_#{plural_name}"
|
64
105
|
end
|
106
|
+
|
107
|
+
def all_actions
|
108
|
+
%w[index show new create edit update destroy]
|
109
|
+
end
|
65
110
|
|
66
111
|
def after_generate
|
67
112
|
puts "
|
@@ -1,4 +1,4 @@
|
|
1
|
-
Feature: Managing <%= plural_name.titleize %>
|
1
|
+
Feature: Managing <%= plural_name.humanize.titleize %>
|
2
2
|
In order to ...
|
3
3
|
As a ...
|
4
4
|
I want to be able to manage <%= plural_name %>
|
@@ -16,7 +16,7 @@ Feature: Managing <%= plural_name.titleize %>
|
|
16
16
|
Then I should see "Biggles"
|
17
17
|
|
18
18
|
Scenario: Editing an existing <%= singular_name %>
|
19
|
-
Given a <%= singular_name %> "Goravia"
|
19
|
+
Given a <%= singular_name.humanize.downcase %> "Goravia"
|
20
20
|
And I am on the admin dashboard
|
21
21
|
And I follow "<%= plural_name.titleize %>"
|
22
22
|
And I follow "Edit"
|
@@ -26,7 +26,7 @@ Feature: Managing <%= plural_name.titleize %>
|
|
26
26
|
And I should not see "Goravia"
|
27
27
|
|
28
28
|
Scenario: Deleting an existing <%= singular_name %>
|
29
|
-
Given a <%= singular_name %> "Goravia"
|
29
|
+
Given a <%= singular_name.humanize.downcase %> "Goravia"
|
30
30
|
And I am on the admin dashboard
|
31
31
|
And I follow "<%= plural_name.titleize %>"
|
32
32
|
And I follow "Delete"
|
@@ -1,7 +1,9 @@
|
|
1
1
|
<%%- form_for(<%= form_object %>) do |f| -%>
|
2
2
|
<%%= f.error_messages -%>
|
3
3
|
<fieldset>
|
4
|
-
|
4
|
+
<%- for attribute in attributes -%>
|
5
|
+
<%%= f.label :<%= attribute.name %> %> <%%= f.<%= attribute.field_type %> :<%= attribute.name %> %> <br />
|
6
|
+
<%- end -%>
|
5
7
|
</fieldset>
|
6
8
|
|
7
9
|
<%%= f.submit "Save" %> or <%%= link_to "Cancel", <%= plural_path_helper %>_path %>
|
@@ -5,7 +5,7 @@ require 'rails_generator/scripts/generate'
|
|
5
5
|
describe CukeminGenerator do
|
6
6
|
|
7
7
|
before do
|
8
|
-
Rails::Generator::Scripts::Generate.new.run(["cukemin", 'admin/place'], :destination => fake_rails_root, :backtrace => true)
|
8
|
+
Rails::Generator::Scripts::Generate.new.run(["cukemin", 'admin/place', 'name:string', 'description:text'], :destination => fake_rails_root, :backtrace => true)
|
9
9
|
end
|
10
10
|
|
11
11
|
let(:controller_file) { fake_rails_root + '/app/controllers/admin/places_controller.rb' }
|
@@ -73,6 +73,7 @@ describe CukeminGenerator do
|
|
73
73
|
it "should output the form partial" do
|
74
74
|
output = File.read(form_view_file)
|
75
75
|
output.should include(%Q[<%- form_for([:admin, @place]) do |f| -%>])
|
76
|
+
output.should include(%Q[<%= f.label :name %> <%= f.text_field :name %> <br />])
|
76
77
|
output.should include(%Q[<%= f.submit "Save" %> or <%= link_to "Cancel", admin_places_path %>])
|
77
78
|
end
|
78
79
|
|
@@ -80,7 +81,7 @@ describe CukeminGenerator do
|
|
80
81
|
File.exists?(feature_file).should be_true
|
81
82
|
end
|
82
83
|
|
83
|
-
it "should output the
|
84
|
+
it "should output the feature file" do
|
84
85
|
output = File.read(feature_file)
|
85
86
|
output.should include(%Q[Feature: Managing Places])
|
86
87
|
output.should include(%Q[Scenario: Creating a new place])
|
data/spec/debug.log
CHANGED
@@ -5623,5 +5623,185 @@
|
|
5623
5623
|
[4;36;1mSQL (0.3ms)[0m [0;1m SELECT name
|
5624
5624
|
FROM sqlite_master
|
5625
5625
|
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
5626
|
+
[0m
|
5627
|
+
[4;35;1mSQL (0.2ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
5628
|
+
[4;36;1mSQL (0.5ms)[0m [0;1mselect sqlite_version(*)[0m
|
5629
|
+
[4;35;1mSQL (0.6ms)[0m [0m SELECT name
|
5630
|
+
FROM sqlite_master
|
5631
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
5632
|
+
[0m
|
5633
|
+
[4;36;1mSQL (1.9ms)[0m [0;1mDROP TABLE "test_models"[0m
|
5634
|
+
[4;35;1mSQL (1.7ms)[0m [0mCREATE TABLE "test_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
5635
|
+
[4;36;1mSQL (0.4ms)[0m [0;1m SELECT name
|
5636
|
+
FROM sqlite_master
|
5637
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
5638
|
+
[0m
|
5639
|
+
[4;35;1mSQL (0.2ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
5640
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
5641
|
+
[4;35;1mSQL (0.4ms)[0m [0m SELECT name
|
5642
|
+
FROM sqlite_master
|
5643
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
5644
|
+
[0m
|
5645
|
+
[4;36;1mSQL (2.4ms)[0m [0;1mDROP TABLE "test_models"[0m
|
5646
|
+
[4;35;1mSQL (1.2ms)[0m [0mCREATE TABLE "test_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
5647
|
+
[4;36;1mSQL (0.4ms)[0m [0;1m SELECT name
|
5648
|
+
FROM sqlite_master
|
5649
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
5650
|
+
[0m
|
5651
|
+
[4;35;1mSQL (0.3ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
5652
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
5653
|
+
[4;35;1mSQL (0.4ms)[0m [0m SELECT name
|
5654
|
+
FROM sqlite_master
|
5655
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
5656
|
+
[0m
|
5657
|
+
[4;36;1mSQL (2.7ms)[0m [0;1mDROP TABLE "test_models"[0m
|
5658
|
+
[4;35;1mSQL (1.4ms)[0m [0mCREATE TABLE "test_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
5659
|
+
[4;36;1mSQL (0.3ms)[0m [0;1m SELECT name
|
5660
|
+
FROM sqlite_master
|
5661
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
5662
|
+
[0m
|
5663
|
+
[4;35;1mSQL (0.2ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
5664
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
5665
|
+
[4;35;1mSQL (0.4ms)[0m [0m SELECT name
|
5666
|
+
FROM sqlite_master
|
5667
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
5668
|
+
[0m
|
5669
|
+
[4;36;1mSQL (2.5ms)[0m [0;1mDROP TABLE "test_models"[0m
|
5670
|
+
[4;35;1mSQL (1.6ms)[0m [0mCREATE TABLE "test_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
5671
|
+
[4;36;1mSQL (0.3ms)[0m [0;1m SELECT name
|
5672
|
+
FROM sqlite_master
|
5673
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
5674
|
+
[0m
|
5675
|
+
[4;35;1mSQL (0.2ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
5676
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
5677
|
+
[4;35;1mSQL (0.4ms)[0m [0m SELECT name
|
5678
|
+
FROM sqlite_master
|
5679
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
5680
|
+
[0m
|
5681
|
+
[4;36;1mSQL (96.7ms)[0m [0;1mDROP TABLE "test_models"[0m
|
5682
|
+
[4;35;1mSQL (3.2ms)[0m [0mCREATE TABLE "test_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
5683
|
+
[4;36;1mSQL (0.8ms)[0m [0;1m SELECT name
|
5684
|
+
FROM sqlite_master
|
5685
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
5686
|
+
[0m
|
5687
|
+
[4;35;1mSQL (1.3ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
5688
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
5689
|
+
[4;35;1mSQL (0.4ms)[0m [0m SELECT name
|
5690
|
+
FROM sqlite_master
|
5691
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
5692
|
+
[0m
|
5693
|
+
[4;36;1mSQL (2.8ms)[0m [0;1mDROP TABLE "test_models"[0m
|
5694
|
+
[4;35;1mSQL (1.7ms)[0m [0mCREATE TABLE "test_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
5695
|
+
[4;36;1mSQL (0.3ms)[0m [0;1m SELECT name
|
5696
|
+
FROM sqlite_master
|
5697
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
5698
|
+
[0m
|
5699
|
+
[4;35;1mSQL (0.2ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
5700
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
5701
|
+
[4;35;1mSQL (0.4ms)[0m [0m SELECT name
|
5702
|
+
FROM sqlite_master
|
5703
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
5704
|
+
[0m
|
5705
|
+
[4;36;1mSQL (2.4ms)[0m [0;1mDROP TABLE "test_models"[0m
|
5706
|
+
[4;35;1mSQL (1.4ms)[0m [0mCREATE TABLE "test_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
5707
|
+
[4;36;1mSQL (0.3ms)[0m [0;1m SELECT name
|
5708
|
+
FROM sqlite_master
|
5709
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
5710
|
+
[0m
|
5711
|
+
[4;35;1mSQL (0.2ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
5712
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
5713
|
+
[4;35;1mSQL (0.4ms)[0m [0m SELECT name
|
5714
|
+
FROM sqlite_master
|
5715
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
5716
|
+
[0m
|
5717
|
+
[4;36;1mSQL (2.4ms)[0m [0;1mDROP TABLE "test_models"[0m
|
5718
|
+
[4;35;1mSQL (1.4ms)[0m [0mCREATE TABLE "test_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
5719
|
+
[4;36;1mSQL (0.3ms)[0m [0;1m SELECT name
|
5720
|
+
FROM sqlite_master
|
5721
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
5722
|
+
[0m
|
5723
|
+
[4;35;1mSQL (0.2ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
5724
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mselect sqlite_version(*)[0m
|
5725
|
+
[4;35;1mSQL (0.4ms)[0m [0m SELECT name
|
5726
|
+
FROM sqlite_master
|
5727
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
5728
|
+
[0m
|
5729
|
+
[4;36;1mSQL (2.6ms)[0m [0;1mDROP TABLE "test_models"[0m
|
5730
|
+
[4;35;1mSQL (1.7ms)[0m [0mCREATE TABLE "test_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
5731
|
+
[4;36;1mSQL (0.3ms)[0m [0;1m SELECT name
|
5732
|
+
FROM sqlite_master
|
5733
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
5734
|
+
[0m
|
5735
|
+
[4;35;1mSQL (0.2ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
5736
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
5737
|
+
[4;35;1mSQL (0.4ms)[0m [0m SELECT name
|
5738
|
+
FROM sqlite_master
|
5739
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
5740
|
+
[0m
|
5741
|
+
[4;36;1mSQL (2.4ms)[0m [0;1mDROP TABLE "test_models"[0m
|
5742
|
+
[4;35;1mSQL (1.4ms)[0m [0mCREATE TABLE "test_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
5743
|
+
[4;36;1mSQL (0.3ms)[0m [0;1m SELECT name
|
5744
|
+
FROM sqlite_master
|
5745
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
5746
|
+
[0m
|
5747
|
+
[4;35;1mSQL (0.2ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
5748
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
5749
|
+
[4;35;1mSQL (0.4ms)[0m [0m SELECT name
|
5750
|
+
FROM sqlite_master
|
5751
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
5752
|
+
[0m
|
5753
|
+
[4;36;1mSQL (2.7ms)[0m [0;1mDROP TABLE "test_models"[0m
|
5754
|
+
[4;35;1mSQL (1.4ms)[0m [0mCREATE TABLE "test_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
5755
|
+
[4;36;1mSQL (0.3ms)[0m [0;1m SELECT name
|
5756
|
+
FROM sqlite_master
|
5757
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
5758
|
+
[0m
|
5759
|
+
[4;35;1mSQL (0.2ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
5760
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
5761
|
+
[4;35;1mSQL (0.4ms)[0m [0m SELECT name
|
5762
|
+
FROM sqlite_master
|
5763
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
5764
|
+
[0m
|
5765
|
+
[4;36;1mSQL (2.6ms)[0m [0;1mDROP TABLE "test_models"[0m
|
5766
|
+
[4;35;1mSQL (1.4ms)[0m [0mCREATE TABLE "test_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
5767
|
+
[4;36;1mSQL (0.3ms)[0m [0;1m SELECT name
|
5768
|
+
FROM sqlite_master
|
5769
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
5770
|
+
[0m
|
5771
|
+
[4;35;1mSQL (0.2ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
5772
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
5773
|
+
[4;35;1mSQL (0.4ms)[0m [0m SELECT name
|
5774
|
+
FROM sqlite_master
|
5775
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
5776
|
+
[0m
|
5777
|
+
[4;36;1mSQL (2.1ms)[0m [0;1mDROP TABLE "test_models"[0m
|
5778
|
+
[4;35;1mSQL (1.5ms)[0m [0mCREATE TABLE "test_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
5779
|
+
[4;36;1mSQL (0.3ms)[0m [0;1m SELECT name
|
5780
|
+
FROM sqlite_master
|
5781
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
5782
|
+
[0m
|
5783
|
+
[4;35;1mSQL (0.2ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
5784
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
5785
|
+
[4;35;1mSQL (0.4ms)[0m [0m SELECT name
|
5786
|
+
FROM sqlite_master
|
5787
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
5788
|
+
[0m
|
5789
|
+
[4;36;1mSQL (1.5ms)[0m [0;1mDROP TABLE "test_models"[0m
|
5790
|
+
[4;35;1mSQL (1.6ms)[0m [0mCREATE TABLE "test_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
5791
|
+
[4;36;1mSQL (0.3ms)[0m [0;1m SELECT name
|
5792
|
+
FROM sqlite_master
|
5793
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
5794
|
+
[0m
|
5795
|
+
[4;35;1mSQL (0.2ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
5796
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
5797
|
+
[4;35;1mSQL (0.4ms)[0m [0m SELECT name
|
5798
|
+
FROM sqlite_master
|
5799
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
5800
|
+
[0m
|
5801
|
+
[4;36;1mSQL (2.7ms)[0m [0;1mDROP TABLE "test_models"[0m
|
5802
|
+
[4;35;1mSQL (1.6ms)[0m [0mCREATE TABLE "test_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
5803
|
+
[4;36;1mSQL (0.3ms)[0m [0;1m SELECT name
|
5804
|
+
FROM sqlite_master
|
5805
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
5626
5806
|
[0m
|
5627
5807
|
[4;35;1mSQL (0.2ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cukemin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Paul Campbell
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-05-
|
18
|
+
date: 2010-05-25 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|