type_station 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/lib/type_station/version.rb +1 -1
  3. data/spec/controllers/type_station/admin/pages_controller_spec.rb +37 -0
  4. data/spec/dummy/README.rdoc +28 -0
  5. data/spec/dummy/Rakefile +6 -0
  6. data/spec/dummy/app/assets/javascripts/application.js +14 -0
  7. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  8. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  9. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  10. data/spec/dummy/app/views/layouts/application.html.erb +17 -0
  11. data/spec/dummy/app/views/pages/blank_index.html.erb +0 -0
  12. data/spec/dummy/app/views/pages/index_other.html.erb +160 -0
  13. data/spec/dummy/bin/bundle +3 -0
  14. data/spec/dummy/bin/rails +4 -0
  15. data/spec/dummy/bin/rake +4 -0
  16. data/spec/dummy/config.ru +4 -0
  17. data/spec/dummy/config/application.rb +29 -0
  18. data/spec/dummy/config/boot.rb +5 -0
  19. data/spec/dummy/config/environment.rb +5 -0
  20. data/spec/dummy/config/environments/development.rb +34 -0
  21. data/spec/dummy/config/environments/production.rb +75 -0
  22. data/spec/dummy/config/environments/test.rb +39 -0
  23. data/spec/dummy/config/initializers/assets.rb +8 -0
  24. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  25. data/spec/dummy/config/initializers/config.rb +23 -0
  26. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  27. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  28. data/spec/dummy/config/initializers/inflections.rb +16 -0
  29. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  30. data/spec/dummy/config/initializers/session_store.rb +3 -0
  31. data/spec/dummy/config/initializers/wrap_parameters.rb +9 -0
  32. data/spec/dummy/config/locales/en.yml +23 -0
  33. data/spec/dummy/config/mongoid.yml +12 -0
  34. data/spec/dummy/config/routes.rb +3 -0
  35. data/spec/dummy/config/secrets.yml +22 -0
  36. data/spec/dummy/db/seeds.rb +11 -0
  37. data/spec/dummy/public/404.html +67 -0
  38. data/spec/dummy/public/422.html +67 -0
  39. data/spec/dummy/public/500.html +66 -0
  40. data/spec/dummy/public/favicon.ico +0 -0
  41. data/spec/dummy/tmp/cache/assets/test/sass/fde2fd9fd4415e2893f7c202128d5909c847645f/admin_bar.css.scssc +0 -0
  42. data/spec/dummy/tmp/cache/assets/test/sass/fde2fd9fd4415e2893f7c202128d5909c847645f/base.css.scssc +0 -0
  43. data/spec/dummy/tmp/cache/assets/test/sprockets/0825425ebf24766be13ebf4e696dc267 +0 -0
  44. data/spec/dummy/tmp/cache/assets/test/sprockets/0b495c71c71a2d087e00d9f77c89b537 +0 -0
  45. data/spec/dummy/tmp/cache/assets/test/sprockets/0cbda04368ddbf6d761e788334075e7c +0 -0
  46. data/spec/dummy/tmp/cache/assets/test/sprockets/0d8f54d1682f575aec8f27993d3af45e +0 -0
  47. data/spec/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  48. data/spec/dummy/tmp/cache/assets/test/sprockets/182d8b06dcdb4f799088741f553903d3 +0 -0
  49. data/spec/dummy/tmp/cache/assets/test/sprockets/1b64a5fd92110dbd078f4ea964e2d0ad +0 -0
  50. data/spec/dummy/tmp/cache/assets/test/sprockets/2155dbeb10a65c2519b49179b3bc6f3a +0 -0
  51. data/spec/dummy/tmp/cache/assets/test/sprockets/21f725a9b3479e57849414f8272a905b +0 -0
  52. data/spec/dummy/tmp/cache/assets/test/sprockets/2535956b4e5e79e8fbd3d30f68de7024 +0 -0
  53. data/spec/dummy/tmp/cache/assets/test/sprockets/28ad54c6e5882957dd269b1b2a3c3c75 +0 -0
  54. data/spec/dummy/tmp/cache/assets/test/sprockets/2d13dd9465026b66cce912e30e142020 +0 -0
  55. data/spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  56. data/spec/dummy/tmp/cache/assets/test/sprockets/300f6f1e08668cacf691691df4d13889 +0 -0
  57. data/spec/dummy/tmp/cache/assets/test/sprockets/311ffc36d5a7e1d3216e672b3e57e7ed +0 -0
  58. data/spec/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  59. data/spec/dummy/tmp/cache/assets/test/sprockets/3a3d03c0a92f21419e1e85991774a28b +0 -0
  60. data/spec/dummy/tmp/cache/assets/test/sprockets/3dea6de9e06b1e372ebf4790f5eecc48 +0 -0
  61. data/spec/dummy/tmp/cache/assets/test/sprockets/4144b15d96ec80b5c7fb367b57aaeef3 +0 -0
  62. data/spec/dummy/tmp/cache/assets/test/sprockets/4729c7f6ab6a91a079ab04a8f04e932b +0 -0
  63. data/spec/dummy/tmp/cache/assets/test/sprockets/4c324a18fe6bf7dbf7a04cccbfdb366e +0 -0
  64. data/spec/dummy/tmp/cache/assets/test/sprockets/535f36c50d5b36ff83bc03bc6a19b8fc +0 -0
  65. data/spec/dummy/tmp/cache/assets/test/sprockets/55c2f55c27a62b998b8d33555158da53 +0 -0
  66. data/spec/dummy/tmp/cache/assets/test/sprockets/56afaea2e164564be4d5f5bbc7f81050 +0 -0
  67. data/spec/dummy/tmp/cache/assets/test/sprockets/579b1a727fe5b55dfe450b0835c56a65 +0 -0
  68. data/spec/dummy/tmp/cache/assets/test/sprockets/6f7174fb7f1fbb8e01d382a128a979e8 +0 -0
  69. data/spec/dummy/tmp/cache/assets/test/sprockets/7746e5b6582f701e40ad5ae69e7a6d25 +0 -0
  70. data/spec/dummy/tmp/cache/assets/test/sprockets/7f14b0b39c11df4f58e03d390b589547 +0 -0
  71. data/spec/dummy/tmp/cache/assets/test/sprockets/8091ad5bff4f0d3d70f874750430241b +0 -0
  72. data/spec/dummy/tmp/cache/assets/test/sprockets/825bd4dba50f1ea2c0ae5e8a3708119e +0 -0
  73. data/spec/dummy/tmp/cache/assets/test/sprockets/85d858ed64f06543161931735cb77748 +0 -0
  74. data/spec/dummy/tmp/cache/assets/test/sprockets/8803d0a63bbf3fce683c968d4a900480 +0 -0
  75. data/spec/dummy/tmp/cache/assets/test/sprockets/887e2151ef4cd6e915fd9bfc27c41d7d +0 -0
  76. data/spec/dummy/tmp/cache/assets/test/sprockets/90c324b461b60cdeb6b549dbf932f162 +0 -0
  77. data/spec/dummy/tmp/cache/assets/test/sprockets/92d59399e3f951cc11721f03a2b328fd +0 -0
  78. data/spec/dummy/tmp/cache/assets/test/sprockets/966db607ae0e7aad72cf171b8fec537a +0 -0
  79. data/spec/dummy/tmp/cache/assets/test/sprockets/99fd048521a12239746f91aa138613bf +0 -0
  80. data/spec/dummy/tmp/cache/assets/test/sprockets/a539d3e91d5fb8eeb973ac8706bbf5c9 +0 -0
  81. data/spec/dummy/tmp/cache/assets/test/sprockets/a87019c62b5fb3b3dc75db921d98ad59 +0 -0
  82. data/spec/dummy/tmp/cache/assets/test/sprockets/a87cf4d10d892fb23f2fc818d7ca7207 +0 -0
  83. data/spec/dummy/tmp/cache/assets/test/sprockets/ab4192212bd78e95967e5a716548236f +0 -0
  84. data/spec/dummy/tmp/cache/assets/test/sprockets/af97ed366de5933460d41b9198ddc99e +0 -0
  85. data/spec/dummy/tmp/cache/assets/test/sprockets/b6f21db694cacb7f5bcbb93cf45f65ed +0 -0
  86. data/spec/dummy/tmp/cache/assets/test/sprockets/bd3113e1418cbc640eb6e1b06d486163 +0 -0
  87. data/spec/dummy/tmp/cache/assets/test/sprockets/c0600b832214f9e16294a1c37c0c3f6e +0 -0
  88. data/spec/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  89. data/spec/dummy/tmp/cache/assets/test/sprockets/d05d272f053261f2d5e3dcca85f19172 +0 -0
  90. data/spec/dummy/tmp/cache/assets/test/sprockets/d1e5823c113c9ee03e6c6d7773eb6fac +0 -0
  91. data/spec/dummy/tmp/cache/assets/test/sprockets/d1f0a2d6fd58a203f3ca66950c822c33 +0 -0
  92. data/spec/dummy/tmp/cache/assets/test/sprockets/d4248f8b11c6b21abffed4a5e718722d +0 -0
  93. data/spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  94. data/spec/dummy/tmp/cache/assets/test/sprockets/db1a08b3c680b077476f767a8addb44b +0 -0
  95. data/spec/dummy/tmp/cache/assets/test/sprockets/dd9f84cc20227ad66bbd1f26bbc11ccc +0 -0
  96. data/spec/dummy/tmp/cache/assets/test/sprockets/de9d72cab443cce32e1d45e62d2b4c04 +0 -0
  97. data/spec/dummy/tmp/cache/assets/test/sprockets/e03c578b73cf9936edc84ff2b48c07da +0 -0
  98. data/spec/dummy/tmp/cache/assets/test/sprockets/ebdd71d1c3cf34d7d174e5c1abb123b7 +0 -0
  99. data/spec/dummy/tmp/cache/assets/test/sprockets/f14e64162f52a8d2d22ff9e1c1cc4fac +0 -0
  100. data/spec/dummy/tmp/cache/assets/test/sprockets/f566af7037e0e3042b19bd5ee11b21c4 +0 -0
  101. data/spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  102. data/spec/dummy/tmp/cache/assets/test/sprockets/fd1cae0417fea68172ab7b747a1d6fd8 +0 -0
  103. data/spec/integration/pages_index_spec.rb +48 -0
  104. data/spec/lib/type_station/dsl_spec.rb +53 -0
  105. data/spec/lib/type_station/view_helpers_spec.rb +181 -0
  106. data/spec/models/type_station/content_spec.rb +38 -0
  107. data/spec/models/type_station/page_spec.rb +107 -0
  108. data/spec/presenters/type_station/page_presenter_spec.rb +36 -0
  109. data/spec/spec_helper.rb +34 -0
  110. data/spec/type_station_spec.rb +7 -0
  111. metadata +296 -13
@@ -0,0 +1,107 @@
1
+ require 'spec_helper'
2
+
3
+ RSpec.describe TypeStation::Page do
4
+
5
+ describe "Validate Single Root page" do
6
+ before do
7
+ @root = TypeStation::Page.create(title: 'Test Index')
8
+ end
9
+ it "will only allow for one root page to exist" do
10
+ TypeStation::Page.create(title: 'Second Index Page')
11
+ expect(TypeStation::Page.count).to eq(1)
12
+ end
13
+
14
+ it "will allow more that one page that isnt a root page to exist" do
15
+ TypeStation::Page.create(title: 'Child page', parent: @root)
16
+ expect(TypeStation::Page.count).to eq(2)
17
+ end
18
+
19
+ it 'will allow me to resave the root page without failing the validatipn' do
20
+ expect(@root.save).to eq(true)
21
+ end
22
+ end
23
+
24
+ describe "Slug and Path Generation" do
25
+
26
+ describe 'root page' do
27
+ before do
28
+ @root = TypeStation::Page.create(title: 'Test Index')
29
+ end
30
+
31
+ it "will not generate a slug for a root page" do
32
+ expect(@root.slug).to eq('')
33
+ end
34
+
35
+ it "will not generate a path for a root page" do
36
+ expect(@root.path).to eq('/')
37
+ end
38
+ end
39
+
40
+ describe 'standard page' do
41
+ before do
42
+ root = TypeStation::Page.create(title: 'Test Index')
43
+ @page = TypeStation::Page.create(title: 'Test', parent: root)
44
+ end
45
+
46
+ it "will not generate a slug for a page" do
47
+ expect(@page.slug).to eq('test')
48
+ end
49
+
50
+ it "will not generate a path for a page" do
51
+ expect(@page.path).to eq('/test')
52
+ end
53
+ end
54
+
55
+ describe 'Long path page' do
56
+ before do
57
+ root = TypeStation::Page.create(title: 'Test Index')
58
+ page = TypeStation::Page.create(title: 'Test1', parent: root)
59
+ page2 = TypeStation::Page.create(title: 'Test2', parent: page)
60
+ page3 = TypeStation::Page.create(title: 'Test3', parent: page2)
61
+ @page4 = TypeStation::Page.create(title: 'Test4', parent: page3)
62
+ end
63
+
64
+ it "will not generate a slug for a page" do
65
+ expect(@page4.slug).to eq('test4')
66
+ end
67
+
68
+ it "will not generate a path for a page" do
69
+ expect(@page4.path).to eq('/test1/test2/test3/test4')
70
+ end
71
+ end
72
+ end
73
+
74
+ describe 'Find by path' do
75
+ before do
76
+ root = TypeStation::Page.create(title: 'Test Index')
77
+ page = TypeStation::Page.create(title: 'Test1', parent: root)
78
+ page2 = TypeStation::Page.create(title: 'Test2', parent: page)
79
+ page3 = TypeStation::Page.create(title: 'Test3', parent: page2)
80
+ @page4 = TypeStation::Page.create(title: 'Test4', parent: page3)
81
+ end
82
+
83
+ it 'will find a page by its path' do
84
+ expect(TypeStation::Page.find_by_path('/test1/test2/test3/test4')).to eq(@page4)
85
+ end
86
+
87
+ it 'will find a page by its path even if the first slash is missing' do
88
+ expect(TypeStation::Page.find_by_path('test1/test2/test3/test4')).to eq(@page4)
89
+ end
90
+
91
+ end
92
+
93
+
94
+ describe 'with Contents' do
95
+ before do
96
+ @root = TypeStation::Page.create(title: 'Test Index')
97
+ @root.contents.build(name: :title, type: :text)
98
+ @root.save
99
+ end
100
+
101
+ it 'will allow me to access the title contents' do
102
+ @root.set :title, 'Testing'
103
+ expect(@root.get(:title)).to eq('Testing')
104
+ end
105
+ end
106
+
107
+ end
@@ -0,0 +1,36 @@
1
+ require 'spec_helper'
2
+
3
+ RSpec.describe TypeStation::PagePresenter do
4
+ describe 'with a page with content objects' do
5
+ before do
6
+ TypeStation::Content.new
7
+ @root = TypeStation::Page.create(title: 'Test Index')
8
+ @page = TypeStation::Page.create(title: 'Test Page', parent: @root)
9
+ @page.contents.build(name: :title_test, type: :text)
10
+ @page.contents.build(name: :body, type: :html)
11
+ @presenter = TypeStation::PagePresenter.new @page, Struct.new(:test)
12
+ end
13
+
14
+ it 'will create a method for each content object' do
15
+ @page.set(:title_test, 'My word')
16
+ @page.set(:body, 'My word')
17
+ expect(@presenter.title_test.value).to eq('My word')
18
+ expect(@presenter.body.value).to eq('My word')
19
+ end
20
+
21
+ it "will allow me to get access to the path and slug" do
22
+ expect(@presenter.path).to eq('/test-page')
23
+ expect(@presenter.slug).to eq('test-page')
24
+ end
25
+
26
+ it "will allow me to get to the page children" do
27
+ expect(@presenter.children.class).to eq(Array)
28
+ end
29
+
30
+ it "will allow me to get to the parent page" do
31
+ expect(@presenter.parent.class).to eq(TypeStation::PagePresenter)
32
+ end
33
+
34
+ end
35
+
36
+ end
@@ -0,0 +1,34 @@
1
+ # Configure Rails Environment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
+
6
+ Rails.backtrace_cleaner.remove_silencers!
7
+
8
+ require 'rspec'
9
+ require 'rspec/rails'
10
+ require 'shoulda/matchers'
11
+ require 'database_cleaner'
12
+
13
+ RSpec.configure do |config|
14
+ config.infer_spec_type_from_file_location!
15
+ # config
16
+ config.before(:suite) do
17
+ DatabaseCleaner.strategy = :truncation
18
+ DatabaseCleaner.clean_with(:truncation)
19
+ end
20
+
21
+ config.before(:each) do
22
+ DatabaseCleaner.start
23
+ end
24
+
25
+ config.after(:each) do
26
+ DatabaseCleaner.clean
27
+ end
28
+
29
+ # config.around(:each) do |example|
30
+ # DatabaseCleaner.cleaning do
31
+ # example.run
32
+ # end
33
+ # end
34
+ end
@@ -0,0 +1,7 @@
1
+ # require 'test_helper'
2
+
3
+ # class TypeStationTest < ActiveSupport::TestCase
4
+ # test "truth" do
5
+ # assert_kind_of Module, TypeStation
6
+ # end
7
+ # end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: type_station
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Adams
@@ -16,19 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 4.1.6
19
+ version: '4.2'
20
+ - - '>='
21
+ - !ruby/object:Gem::Version
22
+ version: 4.2.0
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
27
  - - ~>
25
28
  - !ruby/object:Gem::Version
26
- version: 4.1.6
29
+ version: '4.2'
30
+ - - '>='
31
+ - !ruby/object:Gem::Version
32
+ version: 4.2.0
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: mongoid
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
37
  - - ~>
38
+ - !ruby/object:Gem::Version
39
+ version: '4.0'
40
+ - - '>='
32
41
  - !ruby/object:Gem::Version
33
42
  version: 4.0.0
34
43
  type: :runtime
@@ -36,6 +45,9 @@ dependencies:
36
45
  version_requirements: !ruby/object:Gem::Requirement
37
46
  requirements:
38
47
  - - ~>
48
+ - !ruby/object:Gem::Version
49
+ version: '4.0'
50
+ - - '>='
39
51
  - !ruby/object:Gem::Version
40
52
  version: 4.0.0
41
53
  - !ruby/object:Gem::Dependency
@@ -43,6 +55,9 @@ dependencies:
43
55
  requirement: !ruby/object:Gem::Requirement
44
56
  requirements:
45
57
  - - ~>
58
+ - !ruby/object:Gem::Version
59
+ version: '2.0'
60
+ - - '>='
46
61
  - !ruby/object:Gem::Version
47
62
  version: 2.0.0
48
63
  type: :runtime
@@ -50,64 +65,91 @@ dependencies:
50
65
  version_requirements: !ruby/object:Gem::Requirement
51
66
  requirements:
52
67
  - - ~>
68
+ - !ruby/object:Gem::Version
69
+ version: '2.0'
70
+ - - '>='
53
71
  - !ruby/object:Gem::Version
54
72
  version: 2.0.0
55
73
  - !ruby/object:Gem::Dependency
56
74
  name: jquery-fileupload-rails
57
75
  requirement: !ruby/object:Gem::Requirement
58
76
  requirements:
77
+ - - ~>
78
+ - !ruby/object:Gem::Version
79
+ version: '0.4'
59
80
  - - '>='
60
81
  - !ruby/object:Gem::Version
61
- version: '0'
82
+ version: 0.4.3
62
83
  type: :runtime
63
84
  prerelease: false
64
85
  version_requirements: !ruby/object:Gem::Requirement
65
86
  requirements:
87
+ - - ~>
88
+ - !ruby/object:Gem::Version
89
+ version: '0.4'
66
90
  - - '>='
67
91
  - !ruby/object:Gem::Version
68
- version: '0'
92
+ version: 0.4.3
69
93
  - !ruby/object:Gem::Dependency
70
94
  name: cloudinary
71
95
  requirement: !ruby/object:Gem::Requirement
72
96
  requirements:
97
+ - - ~>
98
+ - !ruby/object:Gem::Version
99
+ version: '1.0'
73
100
  - - '>='
74
101
  - !ruby/object:Gem::Version
75
- version: '0'
102
+ version: 1.0.81
76
103
  type: :runtime
77
104
  prerelease: false
78
105
  version_requirements: !ruby/object:Gem::Requirement
79
106
  requirements:
107
+ - - ~>
108
+ - !ruby/object:Gem::Version
109
+ version: '1.0'
80
110
  - - '>='
81
111
  - !ruby/object:Gem::Version
82
- version: '0'
112
+ version: 1.0.81
83
113
  - !ruby/object:Gem::Dependency
84
114
  name: coffee-rails
85
115
  requirement: !ruby/object:Gem::Requirement
86
116
  requirements:
117
+ - - ~>
118
+ - !ruby/object:Gem::Version
119
+ version: '4.1'
87
120
  - - '>='
88
121
  - !ruby/object:Gem::Version
89
- version: '0'
122
+ version: 4.1.0
90
123
  type: :runtime
91
124
  prerelease: false
92
125
  version_requirements: !ruby/object:Gem::Requirement
93
126
  requirements:
127
+ - - ~>
128
+ - !ruby/object:Gem::Version
129
+ version: '4.1'
94
130
  - - '>='
95
131
  - !ruby/object:Gem::Version
96
- version: '0'
132
+ version: 4.1.0
97
133
  - !ruby/object:Gem::Dependency
98
134
  name: haml-rails
99
135
  requirement: !ruby/object:Gem::Requirement
100
136
  requirements:
137
+ - - ~>
138
+ - !ruby/object:Gem::Version
139
+ version: '0.0'
101
140
  - - '>='
102
141
  - !ruby/object:Gem::Version
103
- version: '0'
142
+ version: 0.7.0
104
143
  type: :runtime
105
144
  prerelease: false
106
145
  version_requirements: !ruby/object:Gem::Requirement
107
146
  requirements:
147
+ - - ~>
148
+ - !ruby/object:Gem::Version
149
+ version: '0.0'
108
150
  - - '>='
109
151
  - !ruby/object:Gem::Version
110
- version: '0'
152
+ version: 0.7.0
111
153
  - !ruby/object:Gem::Dependency
112
154
  name: rspec
113
155
  requirement: !ruby/object:Gem::Requirement
@@ -129,6 +171,9 @@ dependencies:
129
171
  - - ~>
130
172
  - !ruby/object:Gem::Version
131
173
  version: '3.0'
174
+ - - '>='
175
+ - !ruby/object:Gem::Version
176
+ version: '3.0'
132
177
  type: :development
133
178
  prerelease: false
134
179
  version_requirements: !ruby/object:Gem::Requirement
@@ -136,11 +181,17 @@ dependencies:
136
181
  - - ~>
137
182
  - !ruby/object:Gem::Version
138
183
  version: '3.0'
184
+ - - '>='
185
+ - !ruby/object:Gem::Version
186
+ version: '3.0'
139
187
  - !ruby/object:Gem::Dependency
140
188
  name: guard-rspec
141
189
  requirement: !ruby/object:Gem::Requirement
142
190
  requirements:
143
191
  - - ~>
192
+ - !ruby/object:Gem::Version
193
+ version: '4.3'
194
+ - - '>='
144
195
  - !ruby/object:Gem::Version
145
196
  version: 4.3.1
146
197
  type: :development
@@ -148,6 +199,9 @@ dependencies:
148
199
  version_requirements: !ruby/object:Gem::Requirement
149
200
  requirements:
150
201
  - - ~>
202
+ - !ruby/object:Gem::Version
203
+ version: '4.3'
204
+ - - '>='
151
205
  - !ruby/object:Gem::Version
152
206
  version: 4.3.1
153
207
  - !ruby/object:Gem::Dependency
@@ -155,6 +209,9 @@ dependencies:
155
209
  requirement: !ruby/object:Gem::Requirement
156
210
  requirements:
157
211
  - - ~>
212
+ - !ruby/object:Gem::Version
213
+ version: '2.7'
214
+ - - '>='
158
215
  - !ruby/object:Gem::Version
159
216
  version: 2.7.0
160
217
  type: :development
@@ -162,6 +219,9 @@ dependencies:
162
219
  version_requirements: !ruby/object:Gem::Requirement
163
220
  requirements:
164
221
  - - ~>
222
+ - !ruby/object:Gem::Version
223
+ version: '2.7'
224
+ - - '>='
165
225
  - !ruby/object:Gem::Version
166
226
  version: 2.7.0
167
227
  - !ruby/object:Gem::Dependency
@@ -169,6 +229,9 @@ dependencies:
169
229
  requirement: !ruby/object:Gem::Requirement
170
230
  requirements:
171
231
  - - ~>
232
+ - !ruby/object:Gem::Version
233
+ version: '1.4'
234
+ - - '>='
172
235
  - !ruby/object:Gem::Version
173
236
  version: 1.4.0
174
237
  type: :development
@@ -176,9 +239,13 @@ dependencies:
176
239
  version_requirements: !ruby/object:Gem::Requirement
177
240
  requirements:
178
241
  - - ~>
242
+ - !ruby/object:Gem::Version
243
+ version: '1.4'
244
+ - - '>='
179
245
  - !ruby/object:Gem::Version
180
246
  version: 1.4.0
181
- description: A Simple Content Management System.
247
+ description: A simple CMS that just works and can be bolted onto a rails app with
248
+ easy.
182
249
  email:
183
250
  - richard@madwire.co.uk
184
251
  executables: []
@@ -221,6 +288,114 @@ files:
221
288
  - lib/type_station/railtie.rb
222
289
  - lib/type_station/version.rb
223
290
  - lib/type_station/view_helpers.rb
291
+ - spec/controllers/type_station/admin/pages_controller_spec.rb
292
+ - spec/dummy/README.rdoc
293
+ - spec/dummy/Rakefile
294
+ - spec/dummy/app/assets/javascripts/application.js
295
+ - spec/dummy/app/assets/stylesheets/application.css
296
+ - spec/dummy/app/controllers/application_controller.rb
297
+ - spec/dummy/app/helpers/application_helper.rb
298
+ - spec/dummy/app/views/layouts/application.html.erb
299
+ - spec/dummy/app/views/pages/blank_index.html.erb
300
+ - spec/dummy/app/views/pages/index_other.html.erb
301
+ - spec/dummy/bin/bundle
302
+ - spec/dummy/bin/rails
303
+ - spec/dummy/bin/rake
304
+ - spec/dummy/config.ru
305
+ - spec/dummy/config/application.rb
306
+ - spec/dummy/config/boot.rb
307
+ - spec/dummy/config/environment.rb
308
+ - spec/dummy/config/environments/development.rb
309
+ - spec/dummy/config/environments/production.rb
310
+ - spec/dummy/config/environments/test.rb
311
+ - spec/dummy/config/initializers/assets.rb
312
+ - spec/dummy/config/initializers/backtrace_silencers.rb
313
+ - spec/dummy/config/initializers/config.rb
314
+ - spec/dummy/config/initializers/cookies_serializer.rb
315
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
316
+ - spec/dummy/config/initializers/inflections.rb
317
+ - spec/dummy/config/initializers/mime_types.rb
318
+ - spec/dummy/config/initializers/session_store.rb
319
+ - spec/dummy/config/initializers/wrap_parameters.rb
320
+ - spec/dummy/config/locales/en.yml
321
+ - spec/dummy/config/mongoid.yml
322
+ - spec/dummy/config/routes.rb
323
+ - spec/dummy/config/secrets.yml
324
+ - spec/dummy/db/seeds.rb
325
+ - spec/dummy/public/404.html
326
+ - spec/dummy/public/422.html
327
+ - spec/dummy/public/500.html
328
+ - spec/dummy/public/favicon.ico
329
+ - spec/dummy/tmp/cache/assets/test/sass/fde2fd9fd4415e2893f7c202128d5909c847645f/admin_bar.css.scssc
330
+ - spec/dummy/tmp/cache/assets/test/sass/fde2fd9fd4415e2893f7c202128d5909c847645f/base.css.scssc
331
+ - spec/dummy/tmp/cache/assets/test/sprockets/0825425ebf24766be13ebf4e696dc267
332
+ - spec/dummy/tmp/cache/assets/test/sprockets/0b495c71c71a2d087e00d9f77c89b537
333
+ - spec/dummy/tmp/cache/assets/test/sprockets/0cbda04368ddbf6d761e788334075e7c
334
+ - spec/dummy/tmp/cache/assets/test/sprockets/0d8f54d1682f575aec8f27993d3af45e
335
+ - spec/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
336
+ - spec/dummy/tmp/cache/assets/test/sprockets/182d8b06dcdb4f799088741f553903d3
337
+ - spec/dummy/tmp/cache/assets/test/sprockets/1b64a5fd92110dbd078f4ea964e2d0ad
338
+ - spec/dummy/tmp/cache/assets/test/sprockets/2155dbeb10a65c2519b49179b3bc6f3a
339
+ - spec/dummy/tmp/cache/assets/test/sprockets/21f725a9b3479e57849414f8272a905b
340
+ - spec/dummy/tmp/cache/assets/test/sprockets/2535956b4e5e79e8fbd3d30f68de7024
341
+ - spec/dummy/tmp/cache/assets/test/sprockets/28ad54c6e5882957dd269b1b2a3c3c75
342
+ - spec/dummy/tmp/cache/assets/test/sprockets/2d13dd9465026b66cce912e30e142020
343
+ - spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
344
+ - spec/dummy/tmp/cache/assets/test/sprockets/300f6f1e08668cacf691691df4d13889
345
+ - spec/dummy/tmp/cache/assets/test/sprockets/311ffc36d5a7e1d3216e672b3e57e7ed
346
+ - spec/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
347
+ - spec/dummy/tmp/cache/assets/test/sprockets/3a3d03c0a92f21419e1e85991774a28b
348
+ - spec/dummy/tmp/cache/assets/test/sprockets/3dea6de9e06b1e372ebf4790f5eecc48
349
+ - spec/dummy/tmp/cache/assets/test/sprockets/4144b15d96ec80b5c7fb367b57aaeef3
350
+ - spec/dummy/tmp/cache/assets/test/sprockets/4729c7f6ab6a91a079ab04a8f04e932b
351
+ - spec/dummy/tmp/cache/assets/test/sprockets/4c324a18fe6bf7dbf7a04cccbfdb366e
352
+ - spec/dummy/tmp/cache/assets/test/sprockets/535f36c50d5b36ff83bc03bc6a19b8fc
353
+ - spec/dummy/tmp/cache/assets/test/sprockets/55c2f55c27a62b998b8d33555158da53
354
+ - spec/dummy/tmp/cache/assets/test/sprockets/56afaea2e164564be4d5f5bbc7f81050
355
+ - spec/dummy/tmp/cache/assets/test/sprockets/579b1a727fe5b55dfe450b0835c56a65
356
+ - spec/dummy/tmp/cache/assets/test/sprockets/6f7174fb7f1fbb8e01d382a128a979e8
357
+ - spec/dummy/tmp/cache/assets/test/sprockets/7746e5b6582f701e40ad5ae69e7a6d25
358
+ - spec/dummy/tmp/cache/assets/test/sprockets/7f14b0b39c11df4f58e03d390b589547
359
+ - spec/dummy/tmp/cache/assets/test/sprockets/8091ad5bff4f0d3d70f874750430241b
360
+ - spec/dummy/tmp/cache/assets/test/sprockets/825bd4dba50f1ea2c0ae5e8a3708119e
361
+ - spec/dummy/tmp/cache/assets/test/sprockets/85d858ed64f06543161931735cb77748
362
+ - spec/dummy/tmp/cache/assets/test/sprockets/8803d0a63bbf3fce683c968d4a900480
363
+ - spec/dummy/tmp/cache/assets/test/sprockets/887e2151ef4cd6e915fd9bfc27c41d7d
364
+ - spec/dummy/tmp/cache/assets/test/sprockets/90c324b461b60cdeb6b549dbf932f162
365
+ - spec/dummy/tmp/cache/assets/test/sprockets/92d59399e3f951cc11721f03a2b328fd
366
+ - spec/dummy/tmp/cache/assets/test/sprockets/966db607ae0e7aad72cf171b8fec537a
367
+ - spec/dummy/tmp/cache/assets/test/sprockets/99fd048521a12239746f91aa138613bf
368
+ - spec/dummy/tmp/cache/assets/test/sprockets/a539d3e91d5fb8eeb973ac8706bbf5c9
369
+ - spec/dummy/tmp/cache/assets/test/sprockets/a87019c62b5fb3b3dc75db921d98ad59
370
+ - spec/dummy/tmp/cache/assets/test/sprockets/a87cf4d10d892fb23f2fc818d7ca7207
371
+ - spec/dummy/tmp/cache/assets/test/sprockets/ab4192212bd78e95967e5a716548236f
372
+ - spec/dummy/tmp/cache/assets/test/sprockets/af97ed366de5933460d41b9198ddc99e
373
+ - spec/dummy/tmp/cache/assets/test/sprockets/b6f21db694cacb7f5bcbb93cf45f65ed
374
+ - spec/dummy/tmp/cache/assets/test/sprockets/bd3113e1418cbc640eb6e1b06d486163
375
+ - spec/dummy/tmp/cache/assets/test/sprockets/c0600b832214f9e16294a1c37c0c3f6e
376
+ - spec/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
377
+ - spec/dummy/tmp/cache/assets/test/sprockets/d05d272f053261f2d5e3dcca85f19172
378
+ - spec/dummy/tmp/cache/assets/test/sprockets/d1e5823c113c9ee03e6c6d7773eb6fac
379
+ - spec/dummy/tmp/cache/assets/test/sprockets/d1f0a2d6fd58a203f3ca66950c822c33
380
+ - spec/dummy/tmp/cache/assets/test/sprockets/d4248f8b11c6b21abffed4a5e718722d
381
+ - spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
382
+ - spec/dummy/tmp/cache/assets/test/sprockets/db1a08b3c680b077476f767a8addb44b
383
+ - spec/dummy/tmp/cache/assets/test/sprockets/dd9f84cc20227ad66bbd1f26bbc11ccc
384
+ - spec/dummy/tmp/cache/assets/test/sprockets/de9d72cab443cce32e1d45e62d2b4c04
385
+ - spec/dummy/tmp/cache/assets/test/sprockets/e03c578b73cf9936edc84ff2b48c07da
386
+ - spec/dummy/tmp/cache/assets/test/sprockets/ebdd71d1c3cf34d7d174e5c1abb123b7
387
+ - spec/dummy/tmp/cache/assets/test/sprockets/f14e64162f52a8d2d22ff9e1c1cc4fac
388
+ - spec/dummy/tmp/cache/assets/test/sprockets/f566af7037e0e3042b19bd5ee11b21c4
389
+ - spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
390
+ - spec/dummy/tmp/cache/assets/test/sprockets/fd1cae0417fea68172ab7b747a1d6fd8
391
+ - spec/integration/pages_index_spec.rb
392
+ - spec/lib/type_station/dsl_spec.rb
393
+ - spec/lib/type_station/view_helpers_spec.rb
394
+ - spec/models/type_station/content_spec.rb
395
+ - spec/models/type_station/page_spec.rb
396
+ - spec/presenters/type_station/page_presenter_spec.rb
397
+ - spec/spec_helper.rb
398
+ - spec/type_station_spec.rb
224
399
  homepage: http://madwire.co.uk
225
400
  licenses:
226
401
  - MIT
@@ -245,4 +420,112 @@ rubygems_version: 2.2.2
245
420
  signing_key:
246
421
  specification_version: 4
247
422
  summary: A Simple Content Management System.
248
- test_files: []
423
+ test_files:
424
+ - spec/controllers/type_station/admin/pages_controller_spec.rb
425
+ - spec/dummy/app/assets/javascripts/application.js
426
+ - spec/dummy/app/assets/stylesheets/application.css
427
+ - spec/dummy/app/controllers/application_controller.rb
428
+ - spec/dummy/app/helpers/application_helper.rb
429
+ - spec/dummy/app/views/layouts/application.html.erb
430
+ - spec/dummy/app/views/pages/blank_index.html.erb
431
+ - spec/dummy/app/views/pages/index_other.html.erb
432
+ - spec/dummy/bin/bundle
433
+ - spec/dummy/bin/rails
434
+ - spec/dummy/bin/rake
435
+ - spec/dummy/config/application.rb
436
+ - spec/dummy/config/boot.rb
437
+ - spec/dummy/config/environment.rb
438
+ - spec/dummy/config/environments/development.rb
439
+ - spec/dummy/config/environments/production.rb
440
+ - spec/dummy/config/environments/test.rb
441
+ - spec/dummy/config/initializers/assets.rb
442
+ - spec/dummy/config/initializers/backtrace_silencers.rb
443
+ - spec/dummy/config/initializers/config.rb
444
+ - spec/dummy/config/initializers/cookies_serializer.rb
445
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
446
+ - spec/dummy/config/initializers/inflections.rb
447
+ - spec/dummy/config/initializers/mime_types.rb
448
+ - spec/dummy/config/initializers/session_store.rb
449
+ - spec/dummy/config/initializers/wrap_parameters.rb
450
+ - spec/dummy/config/locales/en.yml
451
+ - spec/dummy/config/mongoid.yml
452
+ - spec/dummy/config/routes.rb
453
+ - spec/dummy/config/secrets.yml
454
+ - spec/dummy/config.ru
455
+ - spec/dummy/db/seeds.rb
456
+ - spec/dummy/public/404.html
457
+ - spec/dummy/public/422.html
458
+ - spec/dummy/public/500.html
459
+ - spec/dummy/public/favicon.ico
460
+ - spec/dummy/Rakefile
461
+ - spec/dummy/README.rdoc
462
+ - spec/dummy/tmp/cache/assets/test/sass/fde2fd9fd4415e2893f7c202128d5909c847645f/admin_bar.css.scssc
463
+ - spec/dummy/tmp/cache/assets/test/sass/fde2fd9fd4415e2893f7c202128d5909c847645f/base.css.scssc
464
+ - spec/dummy/tmp/cache/assets/test/sprockets/0825425ebf24766be13ebf4e696dc267
465
+ - spec/dummy/tmp/cache/assets/test/sprockets/0b495c71c71a2d087e00d9f77c89b537
466
+ - spec/dummy/tmp/cache/assets/test/sprockets/0cbda04368ddbf6d761e788334075e7c
467
+ - spec/dummy/tmp/cache/assets/test/sprockets/0d8f54d1682f575aec8f27993d3af45e
468
+ - spec/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
469
+ - spec/dummy/tmp/cache/assets/test/sprockets/182d8b06dcdb4f799088741f553903d3
470
+ - spec/dummy/tmp/cache/assets/test/sprockets/1b64a5fd92110dbd078f4ea964e2d0ad
471
+ - spec/dummy/tmp/cache/assets/test/sprockets/2155dbeb10a65c2519b49179b3bc6f3a
472
+ - spec/dummy/tmp/cache/assets/test/sprockets/21f725a9b3479e57849414f8272a905b
473
+ - spec/dummy/tmp/cache/assets/test/sprockets/2535956b4e5e79e8fbd3d30f68de7024
474
+ - spec/dummy/tmp/cache/assets/test/sprockets/28ad54c6e5882957dd269b1b2a3c3c75
475
+ - spec/dummy/tmp/cache/assets/test/sprockets/2d13dd9465026b66cce912e30e142020
476
+ - spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
477
+ - spec/dummy/tmp/cache/assets/test/sprockets/300f6f1e08668cacf691691df4d13889
478
+ - spec/dummy/tmp/cache/assets/test/sprockets/311ffc36d5a7e1d3216e672b3e57e7ed
479
+ - spec/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
480
+ - spec/dummy/tmp/cache/assets/test/sprockets/3a3d03c0a92f21419e1e85991774a28b
481
+ - spec/dummy/tmp/cache/assets/test/sprockets/3dea6de9e06b1e372ebf4790f5eecc48
482
+ - spec/dummy/tmp/cache/assets/test/sprockets/4144b15d96ec80b5c7fb367b57aaeef3
483
+ - spec/dummy/tmp/cache/assets/test/sprockets/4729c7f6ab6a91a079ab04a8f04e932b
484
+ - spec/dummy/tmp/cache/assets/test/sprockets/4c324a18fe6bf7dbf7a04cccbfdb366e
485
+ - spec/dummy/tmp/cache/assets/test/sprockets/535f36c50d5b36ff83bc03bc6a19b8fc
486
+ - spec/dummy/tmp/cache/assets/test/sprockets/55c2f55c27a62b998b8d33555158da53
487
+ - spec/dummy/tmp/cache/assets/test/sprockets/56afaea2e164564be4d5f5bbc7f81050
488
+ - spec/dummy/tmp/cache/assets/test/sprockets/579b1a727fe5b55dfe450b0835c56a65
489
+ - spec/dummy/tmp/cache/assets/test/sprockets/6f7174fb7f1fbb8e01d382a128a979e8
490
+ - spec/dummy/tmp/cache/assets/test/sprockets/7746e5b6582f701e40ad5ae69e7a6d25
491
+ - spec/dummy/tmp/cache/assets/test/sprockets/7f14b0b39c11df4f58e03d390b589547
492
+ - spec/dummy/tmp/cache/assets/test/sprockets/8091ad5bff4f0d3d70f874750430241b
493
+ - spec/dummy/tmp/cache/assets/test/sprockets/825bd4dba50f1ea2c0ae5e8a3708119e
494
+ - spec/dummy/tmp/cache/assets/test/sprockets/85d858ed64f06543161931735cb77748
495
+ - spec/dummy/tmp/cache/assets/test/sprockets/8803d0a63bbf3fce683c968d4a900480
496
+ - spec/dummy/tmp/cache/assets/test/sprockets/887e2151ef4cd6e915fd9bfc27c41d7d
497
+ - spec/dummy/tmp/cache/assets/test/sprockets/90c324b461b60cdeb6b549dbf932f162
498
+ - spec/dummy/tmp/cache/assets/test/sprockets/92d59399e3f951cc11721f03a2b328fd
499
+ - spec/dummy/tmp/cache/assets/test/sprockets/966db607ae0e7aad72cf171b8fec537a
500
+ - spec/dummy/tmp/cache/assets/test/sprockets/99fd048521a12239746f91aa138613bf
501
+ - spec/dummy/tmp/cache/assets/test/sprockets/a539d3e91d5fb8eeb973ac8706bbf5c9
502
+ - spec/dummy/tmp/cache/assets/test/sprockets/a87019c62b5fb3b3dc75db921d98ad59
503
+ - spec/dummy/tmp/cache/assets/test/sprockets/a87cf4d10d892fb23f2fc818d7ca7207
504
+ - spec/dummy/tmp/cache/assets/test/sprockets/ab4192212bd78e95967e5a716548236f
505
+ - spec/dummy/tmp/cache/assets/test/sprockets/af97ed366de5933460d41b9198ddc99e
506
+ - spec/dummy/tmp/cache/assets/test/sprockets/b6f21db694cacb7f5bcbb93cf45f65ed
507
+ - spec/dummy/tmp/cache/assets/test/sprockets/bd3113e1418cbc640eb6e1b06d486163
508
+ - spec/dummy/tmp/cache/assets/test/sprockets/c0600b832214f9e16294a1c37c0c3f6e
509
+ - spec/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
510
+ - spec/dummy/tmp/cache/assets/test/sprockets/d05d272f053261f2d5e3dcca85f19172
511
+ - spec/dummy/tmp/cache/assets/test/sprockets/d1e5823c113c9ee03e6c6d7773eb6fac
512
+ - spec/dummy/tmp/cache/assets/test/sprockets/d1f0a2d6fd58a203f3ca66950c822c33
513
+ - spec/dummy/tmp/cache/assets/test/sprockets/d4248f8b11c6b21abffed4a5e718722d
514
+ - spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
515
+ - spec/dummy/tmp/cache/assets/test/sprockets/db1a08b3c680b077476f767a8addb44b
516
+ - spec/dummy/tmp/cache/assets/test/sprockets/dd9f84cc20227ad66bbd1f26bbc11ccc
517
+ - spec/dummy/tmp/cache/assets/test/sprockets/de9d72cab443cce32e1d45e62d2b4c04
518
+ - spec/dummy/tmp/cache/assets/test/sprockets/e03c578b73cf9936edc84ff2b48c07da
519
+ - spec/dummy/tmp/cache/assets/test/sprockets/ebdd71d1c3cf34d7d174e5c1abb123b7
520
+ - spec/dummy/tmp/cache/assets/test/sprockets/f14e64162f52a8d2d22ff9e1c1cc4fac
521
+ - spec/dummy/tmp/cache/assets/test/sprockets/f566af7037e0e3042b19bd5ee11b21c4
522
+ - spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
523
+ - spec/dummy/tmp/cache/assets/test/sprockets/fd1cae0417fea68172ab7b747a1d6fd8
524
+ - spec/integration/pages_index_spec.rb
525
+ - spec/lib/type_station/dsl_spec.rb
526
+ - spec/lib/type_station/view_helpers_spec.rb
527
+ - spec/models/type_station/content_spec.rb
528
+ - spec/models/type_station/page_spec.rb
529
+ - spec/presenters/type_station/page_presenter_spec.rb
530
+ - spec/spec_helper.rb
531
+ - spec/type_station_spec.rb