rails-settings-ui 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9932d113f78297f5fa9be2625ade2d53d313a6fa
4
- data.tar.gz: 9695001c41dafd6966f9528d602d54373888dd93
3
+ metadata.gz: cc72755cf22a10415d58b3854758ea9b01af316e
4
+ data.tar.gz: 77a112f4085d266714e08ddcb1348998db01d11e
5
5
  SHA512:
6
- metadata.gz: 4ef4aba093b46b7e636aa50f4f4685247a5994a0833d3b639eff650c2c3bcf88f488f25a19d63608c787c975218bf0403f00406c3a149fe505c07f7a5a817013
7
- data.tar.gz: bcf91dacf6e04aaa8b243eca8cd21ac4037918192b3f4355edbde3103688c875d9e750c81c476313ec5cc584f601a9ea06bfa3b7812b35bc9f88653a6ff3ae8b
6
+ metadata.gz: 987c8bafcca25d32509aec2de3f6f57b18ef12f35038bab3d0e8fde4c9d0e29447db29735196de32f3f6cda5f9ee33bd4909f59079121fde9b2291a9115c64ae
7
+ data.tar.gz: 2cec2721aed657dd43a150adc1087e9cdbb34d5b5c90b2371ee9c998a74e0e0810d8d74a9ddab979326900c7f76b19aced1c9e13248bd9b9504b82b4dd0381fa
data/README.md CHANGED
@@ -18,13 +18,7 @@ How to
18
18
 
19
19
  Add to Gemfile
20
20
 
21
- if you use bootstrap 2
22
-
23
- gem 'rails-settings-ui', '~> 0.2.0'
24
-
25
- for bootstrap 3
26
-
27
- gem 'rails-settings-ui', '~> 0.3.0'
21
+ gem 'rails-settings-ui'
28
22
 
29
23
  then add
30
24
 
@@ -36,6 +30,9 @@ or
36
30
 
37
31
  or your fork of rails-settings.
38
32
 
33
+ If you want to use bootstrap interface you need also include bootstrap stylesheets to your app.
34
+ You may use [bootstrap-sass](https://github.com/twbs/bootstrap-sass) gem for that.
35
+
39
36
  Setup:
40
37
 
41
38
  # adds initializer and route:
@@ -1,4 +1,5 @@
1
1
  class RailsSettingsUi::SettingsController < RailsSettingsUi::ApplicationController
2
+ include RailsSettingsUi::SettingsHelper
2
3
  before_filter :collection
3
4
  before_filter :cast_settings_params, only: :update_all
4
5
 
@@ -17,7 +18,7 @@ class RailsSettingsUi::SettingsController < RailsSettingsUi::ApplicationControll
17
18
  private
18
19
 
19
20
  def collection
20
- all_settings = RailsSettingsUi.settings_klass.defaults.merge(RailsSettingsUi.settings_klass.get_all)
21
+ all_settings = RailsSettingsUi.settings_klass.defaults.merge(RailsSettingsUi.settings_klass.public_send(get_collection_method))
21
22
  all_settings_without_ignored = all_settings.reject{ |name, description| RailsSettingsUi.ignored_settings.include?(name.to_sym) }
22
23
  @settings = Hash[all_settings_without_ignored]
23
24
  end
@@ -55,4 +55,13 @@ module RailsSettingsUi::SettingsHelper
55
55
  def message_for_default_value_missing
56
56
  content_tag(:span, I18n.t("settings.errors.default_missing"), class: "label label-warning")
57
57
  end
58
+
59
+ def get_collection_method
60
+ case Rails::VERSION::STRING
61
+ when /4\.0\.\d+/ || /3\..*/
62
+ :all
63
+ else
64
+ :get_all
65
+ end
66
+ end
58
67
  end
@@ -5,7 +5,6 @@
5
5
  %meta{:charset => "utf-8"}
6
6
  %meta{"http-equiv" => "X-UA-Compatible", :content => "IE=edge,chrome=1"}
7
7
  %meta{:name => "viewport", :content => "width=device-width, initial-scale=1, maximum-scale=1"}
8
- = stylesheet_link_tag "rails_settings_ui/application"
9
8
  = csrf_meta_tags
10
9
  %body
11
10
  .container
@@ -1,7 +1,4 @@
1
1
  require 'haml-rails'
2
- require 'sass'
3
- require 'sass-rails'
4
- require 'bootstrap-sass'
5
2
 
6
3
  module ::RailsSettingsUi
7
4
  class Engine < Rails::Engine
@@ -1,3 +1,3 @@
1
1
  module RailsSettingsUi
2
- VERSION = '0.4.0'
2
+ VERSION = '0.5.0'
3
3
  end
@@ -9427,3 +9427,378 @@ Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.1ms)
9427
9427
   (0.0ms) rollback transaction
9428
9428
   (0.0ms) begin transaction
9429
9429
   (0.0ms) rollback transaction
9430
+  (0.6ms) CREATE TABLE "settings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "var" varchar(255) NOT NULL, "value" text, "thing_id" integer, "thing_type" varchar(30), "created_at" datetime, "updated_at" datetime) 
9431
+  (0.1ms) select sqlite_version(*)
9432
+  (0.1ms) CREATE UNIQUE INDEX "index_settings_on_thing_type_and_thing_id_and_var" ON "settings" ("thing_type", "thing_id", "var")
9433
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
9434
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
9435
+  (0.1ms) SELECT version FROM "schema_migrations"
9436
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20140320182332')
9437
+  (0.1ms) begin transaction
9438
+  (0.0ms) rollback transaction
9439
+  (0.0ms) begin transaction
9440
+  (0.0ms) rollback transaction
9441
+  (0.0ms) begin transaction
9442
+  (0.0ms) rollback transaction
9443
+  (0.0ms) begin transaction
9444
+  (0.0ms) rollback transaction
9445
+  (0.0ms) begin transaction
9446
+  (0.0ms) rollback transaction
9447
+  (0.0ms) begin transaction
9448
+  (0.0ms) rollback transaction
9449
+  (0.0ms) begin transaction
9450
+  (0.0ms) rollback transaction
9451
+  (0.0ms) begin transaction
9452
+  (0.0ms) rollback transaction
9453
+  (0.0ms) begin transaction
9454
+  (0.0ms) rollback transaction
9455
+  (0.0ms) begin transaction
9456
+  (0.0ms) rollback transaction
9457
+  (0.0ms) begin transaction
9458
+  (0.0ms) rollback transaction
9459
+  (0.0ms) begin transaction
9460
+  (0.0ms) rollback transaction
9461
+  (0.1ms) begin transaction
9462
+  (0.0ms) rollback transaction
9463
+  (0.0ms) begin transaction
9464
+  (0.0ms) rollback transaction
9465
+  (0.0ms) begin transaction
9466
+  (0.1ms) SAVEPOINT active_record_1
9467
+ SQL (0.2ms) INSERT INTO "settings" ("created_at", "updated_at", "value", "var") VALUES (?, ?, ?, ?) [["created_at", "2015-08-06 18:50:43.353973"], ["updated_at", "2015-08-06 18:50:43.353973"], ["value", "--- apple\n...\n"], ["var", "company"]]
9468
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9469
+ Started GET "/settings" for 127.0.0.1 at 2015-08-06 21:50:43 +0300
9470
+ Processing by RailsSettingsUi::SettingsController#index as HTML
9471
+ Settings Load (0.1ms) SELECT var,value FROM "settings" WHERE (thing_type is NULL and thing_id is NULL)
9472
+ Rendered /Users/accessd/projects/rails-settings-ui/app/views/rails_settings_ui/settings/index.html.haml within layouts/rails_settings_ui/application (7.0ms)
9473
+ Completed 200 OK in 19ms (Views: 16.3ms | ActiveRecord: 0.1ms)
9474
+  (0.5ms) rollback transaction
9475
+  (0.1ms) begin transaction
9476
+ Started GET "/settings" for 127.0.0.1 at 2015-08-06 21:50:43 +0300
9477
+ Processing by RailsSettingsUi::SettingsController#index as HTML
9478
+ Settings Load (0.1ms) SELECT var,value FROM "settings" WHERE (thing_type is NULL and thing_id is NULL)
9479
+ Rendered /Users/accessd/projects/rails-settings-ui/app/views/rails_settings_ui/settings/index.html.haml within layouts/rails_settings_ui/application (2.3ms)
9480
+ Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.1ms)
9481
+  (0.1ms) rollback transaction
9482
+  (0.0ms) begin transaction
9483
+ Started GET "/settings" for 127.0.0.1 at 2015-08-06 21:50:43 +0300
9484
+ Processing by RailsSettingsUi::SettingsController#index as HTML
9485
+ Settings Load (0.1ms) SELECT var,value FROM "settings" WHERE (thing_type is NULL and thing_id is NULL)
9486
+ Rendered /Users/accessd/projects/rails-settings-ui/app/views/rails_settings_ui/settings/index.html.haml within layouts/rails_settings_ui/application (2.5ms)
9487
+ Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms)
9488
+ Started PUT "/settings/update_all" for 127.0.0.1 at 2015-08-06 21:50:43 +0300
9489
+ Processing by RailsSettingsUi::SettingsController#update_all as HTML
9490
+ Parameters: {"utf8"=>"✓", "settings"=>{"project_name"=>"Dummy", "limit"=>"150", "style"=>"test", "check_something"=>"on", "description"=>"But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful.", "mode"=>{"auto"=>"on", "manual"=>"on"}}, "commit"=>"Save all"}
9491
+ Settings Load (0.1ms) SELECT var,value FROM "settings" WHERE (thing_type is NULL and thing_id is NULL)
9492
+ Rendered /Users/accessd/projects/rails-settings-ui/app/views/rails_settings_ui/settings/index.html.haml within layouts/rails_settings_ui/application (2.7ms)
9493
+ Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.1ms)
9494
+  (0.1ms) rollback transaction
9495
+  (0.0ms) begin transaction
9496
+ Started GET "/settings" for 127.0.0.1 at 2015-08-06 21:50:43 +0300
9497
+ Processing by RailsSettingsUi::SettingsController#index as HTML
9498
+ Settings Load (0.1ms) SELECT var,value FROM "settings" WHERE (thing_type is NULL and thing_id is NULL)
9499
+ Rendered /Users/accessd/projects/rails-settings-ui/app/views/rails_settings_ui/settings/index.html.haml within layouts/rails_settings_ui/application (2.6ms)
9500
+ Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)
9501
+ Started PUT "/settings/update_all" for 127.0.0.1 at 2015-08-06 21:50:43 +0300
9502
+ Processing by RailsSettingsUi::SettingsController#update_all as HTML
9503
+ Parameters: {"utf8"=>"✓", "settings"=>{"project_name"=>"Dummy", "limit"=>"test", "style"=>"{\"border_color\"=>\"e0e0e0\", \"block_color\"=>\"ffffff\", \"title\"=>{\"font\"=>\"Tahoma\", \"size\"=>\"12\", \"color\"=>\"107821\"}}", "check_something"=>"on", "description"=>"But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful.", "mode"=>{"auto"=>"on", "manual"=>"on"}}, "commit"=>"Save all"}
9504
+ Settings Load (0.1ms) SELECT var,value FROM "settings" WHERE (thing_type is NULL and thing_id is NULL)
9505
+ Rendered /Users/accessd/projects/rails-settings-ui/app/views/rails_settings_ui/settings/index.html.haml within layouts/rails_settings_ui/application (3.5ms)
9506
+ Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.1ms)
9507
+  (0.1ms) rollback transaction
9508
+  (0.0ms) begin transaction
9509
+ Started GET "/settings" for 127.0.0.1 at 2015-08-06 21:50:43 +0300
9510
+ Processing by RailsSettingsUi::SettingsController#index as HTML
9511
+ Settings Load (0.1ms) SELECT var,value FROM "settings" WHERE (thing_type is NULL and thing_id is NULL)
9512
+ Rendered /Users/accessd/projects/rails-settings-ui/app/views/rails_settings_ui/settings/index.html.haml within layouts/rails_settings_ui/application (2.6ms)
9513
+ Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.1ms)
9514
+  (0.1ms) rollback transaction
9515
+  (0.0ms) begin transaction
9516
+ Started GET "/settings" for 127.0.0.1 at 2015-08-06 21:50:43 +0300
9517
+ Processing by RailsSettingsUi::SettingsController#index as HTML
9518
+ Settings Load (0.1ms) SELECT var,value FROM "settings" WHERE (thing_type is NULL and thing_id is NULL)
9519
+ Rendered /Users/accessd/projects/rails-settings-ui/app/views/rails_settings_ui/settings/index.html.haml within layouts/rails_settings_ui/application (2.9ms)
9520
+ Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.1ms)
9521
+  (0.1ms) rollback transaction
9522
+  (0.0ms) begin transaction
9523
+ Started GET "/settings" for 127.0.0.1 at 2015-08-06 21:50:43 +0300
9524
+ Processing by RailsSettingsUi::SettingsController#index as HTML
9525
+ Settings Load (0.1ms) SELECT var,value FROM "settings" WHERE (thing_type is NULL and thing_id is NULL)
9526
+ Rendered /Users/accessd/projects/rails-settings-ui/app/views/rails_settings_ui/settings/index.html.haml within layouts/rails_settings_ui/application (2.8ms)
9527
+ Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.1ms)
9528
+  (0.1ms) rollback transaction
9529
+  (0.0ms) begin transaction
9530
+ Started GET "/settings" for 127.0.0.1 at 2015-08-06 21:50:43 +0300
9531
+ Processing by RailsSettingsUi::SettingsController#index as HTML
9532
+ Settings Load (0.1ms) SELECT var,value FROM "settings" WHERE (thing_type is NULL and thing_id is NULL)
9533
+ Rendered /Users/accessd/projects/rails-settings-ui/app/views/rails_settings_ui/settings/index.html.haml within layouts/rails_settings_ui/application (2.4ms)
9534
+ Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.1ms)
9535
+  (0.1ms) rollback transaction
9536
+  (0.0ms) begin transaction
9537
+ Started GET "/settings" for 127.0.0.1 at 2015-08-06 21:50:43 +0300
9538
+ Processing by RailsSettingsUi::SettingsController#index as HTML
9539
+ Settings Load (0.1ms) SELECT var,value FROM "settings" WHERE (thing_type is NULL and thing_id is NULL)
9540
+ Rendered /Users/accessd/projects/rails-settings-ui/app/views/rails_settings_ui/settings/index.html.haml within layouts/rails_settings_ui/application (3.1ms)
9541
+ Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.1ms)
9542
+  (0.1ms) rollback transaction
9543
+  (0.0ms) begin transaction
9544
+  (0.0ms) rollback transaction
9545
+  (0.0ms) begin transaction
9546
+  (0.0ms) rollback transaction
9547
+  (0.0ms) begin transaction
9548
+  (0.0ms) rollback transaction
9549
+  (0.0ms) begin transaction
9550
+  (0.0ms) rollback transaction
9551
+  (0.1ms) begin transaction
9552
+  (0.0ms) rollback transaction
9553
+  (0.0ms) begin transaction
9554
+  (0.0ms) rollback transaction
9555
+  (0.3ms) CREATE TABLE "settings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "var" varchar(255) NOT NULL, "value" text, "thing_id" integer, "thing_type" varchar(30), "created_at" datetime, "updated_at" datetime) 
9556
+  (0.1ms) select sqlite_version(*)
9557
+  (0.1ms) CREATE UNIQUE INDEX "index_settings_on_thing_type_and_thing_id_and_var" ON "settings" ("thing_type", "thing_id", "var")
9558
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
9559
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
9560
+  (0.1ms) SELECT version FROM "schema_migrations"
9561
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20140320182332')
9562
+  (0.1ms) begin transaction
9563
+  (0.1ms) rollback transaction
9564
+  (0.0ms) begin transaction
9565
+  (0.0ms) rollback transaction
9566
+  (0.0ms) begin transaction
9567
+  (0.0ms) rollback transaction
9568
+  (0.0ms) begin transaction
9569
+  (0.1ms) SAVEPOINT active_record_1
9570
+ SQL (0.1ms) INSERT INTO "settings" ("created_at", "updated_at", "value", "var") VALUES (?, ?, ?, ?) [["created_at", "2015-08-06 18:50:51.998603"], ["updated_at", "2015-08-06 18:50:51.998603"], ["value", "--- apple\n...\n"], ["var", "company"]]
9571
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9572
+ Started GET "/settings" for 127.0.0.1 at 2015-08-06 21:50:52 +0300
9573
+ Processing by RailsSettingsUi::SettingsController#index as HTML
9574
+ Settings Load (0.1ms) SELECT var,value FROM "settings" WHERE (thing_type is NULL and thing_id is NULL)
9575
+ Rendered /Users/accessd/projects/rails-settings-ui/app/views/rails_settings_ui/settings/index.html.haml within layouts/rails_settings_ui/application (13.4ms)
9576
+ Completed 200 OK in 24ms (Views: 22.5ms | ActiveRecord: 0.1ms)
9577
+  (0.1ms) rollback transaction
9578
+  (0.0ms) begin transaction
9579
+ Started GET "/settings" for 127.0.0.1 at 2015-08-06 21:50:52 +0300
9580
+ Processing by RailsSettingsUi::SettingsController#index as HTML
9581
+ Settings Load (0.1ms) SELECT var,value FROM "settings" WHERE (thing_type is NULL and thing_id is NULL)
9582
+ Rendered /Users/accessd/projects/rails-settings-ui/app/views/rails_settings_ui/settings/index.html.haml within layouts/rails_settings_ui/application (2.6ms)
9583
+ Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)
9584
+  (0.1ms) rollback transaction
9585
+  (0.0ms) begin transaction
9586
+ Started GET "/settings" for 127.0.0.1 at 2015-08-06 21:50:52 +0300
9587
+ Processing by RailsSettingsUi::SettingsController#index as HTML
9588
+ Settings Load (0.1ms) SELECT var,value FROM "settings" WHERE (thing_type is NULL and thing_id is NULL)
9589
+ Rendered /Users/accessd/projects/rails-settings-ui/app/views/rails_settings_ui/settings/index.html.haml within layouts/rails_settings_ui/application (2.6ms)
9590
+ Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms)
9591
+  (0.0ms) rollback transaction
9592
+  (0.0ms) begin transaction
9593
+ Started GET "/settings" for 127.0.0.1 at 2015-08-06 21:50:52 +0300
9594
+ Processing by RailsSettingsUi::SettingsController#index as HTML
9595
+ Settings Load (0.1ms) SELECT var,value FROM "settings" WHERE (thing_type is NULL and thing_id is NULL)
9596
+ Rendered /Users/accessd/projects/rails-settings-ui/app/views/rails_settings_ui/settings/index.html.haml within layouts/rails_settings_ui/application (2.6ms)
9597
+ Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)
9598
+  (0.1ms) rollback transaction
9599
+  (0.0ms) begin transaction
9600
+ Started GET "/settings" for 127.0.0.1 at 2015-08-06 21:50:52 +0300
9601
+ Processing by RailsSettingsUi::SettingsController#index as HTML
9602
+ Settings Load (0.1ms) SELECT var,value FROM "settings" WHERE (thing_type is NULL and thing_id is NULL)
9603
+ Rendered /Users/accessd/projects/rails-settings-ui/app/views/rails_settings_ui/settings/index.html.haml within layouts/rails_settings_ui/application (2.6ms)
9604
+ Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)
9605
+  (0.1ms) rollback transaction
9606
+  (0.1ms) begin transaction
9607
+ Started GET "/settings" for 127.0.0.1 at 2015-08-06 21:50:52 +0300
9608
+ Processing by RailsSettingsUi::SettingsController#index as HTML
9609
+ Settings Load (0.1ms) SELECT var,value FROM "settings" WHERE (thing_type is NULL and thing_id is NULL)
9610
+ Rendered /Users/accessd/projects/rails-settings-ui/app/views/rails_settings_ui/settings/index.html.haml within layouts/rails_settings_ui/application (2.9ms)
9611
+ Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.1ms)
9612
+  (0.1ms) rollback transaction
9613
+  (0.1ms) begin transaction
9614
+ Started GET "/settings" for 127.0.0.1 at 2015-08-06 21:50:52 +0300
9615
+ Processing by RailsSettingsUi::SettingsController#index as HTML
9616
+ Settings Load (0.1ms) SELECT var,value FROM "settings" WHERE (thing_type is NULL and thing_id is NULL)
9617
+ Rendered /Users/accessd/projects/rails-settings-ui/app/views/rails_settings_ui/settings/index.html.haml within layouts/rails_settings_ui/application (2.4ms)
9618
+ Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms)
9619
+  (0.1ms) rollback transaction
9620
+  (0.0ms) begin transaction
9621
+ Started GET "/settings" for 127.0.0.1 at 2015-08-06 21:50:52 +0300
9622
+ Processing by RailsSettingsUi::SettingsController#index as HTML
9623
+ Settings Load (0.1ms) SELECT var,value FROM "settings" WHERE (thing_type is NULL and thing_id is NULL)
9624
+ Rendered /Users/accessd/projects/rails-settings-ui/app/views/rails_settings_ui/settings/index.html.haml within layouts/rails_settings_ui/application (2.5ms)
9625
+ Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms)
9626
+ Started PUT "/settings/update_all" for 127.0.0.1 at 2015-08-06 21:50:52 +0300
9627
+ Processing by RailsSettingsUi::SettingsController#update_all as HTML
9628
+ Parameters: {"utf8"=>"✓", "settings"=>{"project_name"=>"Dummy", "limit"=>"150", "style"=>"test", "check_something"=>"on", "description"=>"But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful.", "mode"=>{"auto"=>"on", "manual"=>"on"}}, "commit"=>"Save all"}
9629
+ Settings Load (0.1ms) SELECT var,value FROM "settings" WHERE (thing_type is NULL and thing_id is NULL)
9630
+ Rendered /Users/accessd/projects/rails-settings-ui/app/views/rails_settings_ui/settings/index.html.haml within layouts/rails_settings_ui/application (3.3ms)
9631
+ Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.1ms)
9632
+  (0.2ms) rollback transaction
9633
+  (0.2ms) begin transaction
9634
+ Started GET "/settings" for 127.0.0.1 at 2015-08-06 21:50:52 +0300
9635
+ Processing by RailsSettingsUi::SettingsController#index as HTML
9636
+ Settings Load (0.2ms) SELECT var,value FROM "settings" WHERE (thing_type is NULL and thing_id is NULL)
9637
+ Rendered /Users/accessd/projects/rails-settings-ui/app/views/rails_settings_ui/settings/index.html.haml within layouts/rails_settings_ui/application (2.8ms)
9638
+ Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.2ms)
9639
+ Started PUT "/settings/update_all" for 127.0.0.1 at 2015-08-06 21:50:52 +0300
9640
+ Processing by RailsSettingsUi::SettingsController#update_all as HTML
9641
+ Parameters: {"utf8"=>"✓", "settings"=>{"project_name"=>"Dummy", "limit"=>"test", "style"=>"{\"border_color\"=>\"e0e0e0\", \"block_color\"=>\"ffffff\", \"title\"=>{\"font\"=>\"Tahoma\", \"size\"=>\"12\", \"color\"=>\"107821\"}}", "check_something"=>"on", "description"=>"But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful.", "mode"=>{"auto"=>"on", "manual"=>"on"}}, "commit"=>"Save all"}
9642
+ Settings Load (0.1ms) SELECT var,value FROM "settings" WHERE (thing_type is NULL and thing_id is NULL)
9643
+ Rendered /Users/accessd/projects/rails-settings-ui/app/views/rails_settings_ui/settings/index.html.haml within layouts/rails_settings_ui/application (4.0ms)
9644
+ Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.1ms)
9645
+  (0.1ms) rollback transaction
9646
+  (0.0ms) begin transaction
9647
+  (0.0ms) rollback transaction
9648
+  (0.0ms) begin transaction
9649
+  (0.0ms) rollback transaction
9650
+  (0.0ms) begin transaction
9651
+  (0.0ms) rollback transaction
9652
+  (0.0ms) begin transaction
9653
+  (0.0ms) rollback transaction
9654
+  (0.0ms) begin transaction
9655
+  (0.0ms) rollback transaction
9656
+  (0.0ms) begin transaction
9657
+  (0.0ms) rollback transaction
9658
+  (0.0ms) begin transaction
9659
+  (0.0ms) rollback transaction
9660
+  (0.0ms) begin transaction
9661
+  (0.0ms) rollback transaction
9662
+  (0.0ms) begin transaction
9663
+  (0.0ms) rollback transaction
9664
+  (0.0ms) begin transaction
9665
+  (0.0ms) rollback transaction
9666
+  (0.0ms) begin transaction
9667
+  (0.0ms) rollback transaction
9668
+  (0.0ms) begin transaction
9669
+  (0.0ms) rollback transaction
9670
+  (0.0ms) begin transaction
9671
+  (0.0ms) rollback transaction
9672
+  (0.0ms) begin transaction
9673
+  (0.0ms) rollback transaction
9674
+  (0.0ms) begin transaction
9675
+  (0.0ms) rollback transaction
9676
+  (0.0ms) begin transaction
9677
+  (0.0ms) rollback transaction
9678
+  (0.0ms) begin transaction
9679
+  (0.0ms) rollback transaction
9680
+  (0.3ms) CREATE TABLE "settings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "var" varchar(255) NOT NULL, "value" text, "thing_id" integer, "thing_type" varchar(30), "created_at" datetime, "updated_at" datetime) 
9681
+  (0.1ms) select sqlite_version(*)
9682
+  (0.1ms) CREATE UNIQUE INDEX "index_settings_on_thing_type_and_thing_id_and_var" ON "settings" ("thing_type", "thing_id", "var")
9683
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
9684
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
9685
+  (0.1ms) SELECT version FROM "schema_migrations"
9686
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20140320182332')
9687
+  (0.1ms) begin transaction
9688
+  (0.1ms) rollback transaction
9689
+  (0.0ms) begin transaction
9690
+  (0.0ms) rollback transaction
9691
+  (0.1ms) begin transaction
9692
+  (0.0ms) rollback transaction
9693
+  (0.1ms) begin transaction
9694
+  (0.1ms) rollback transaction
9695
+  (0.0ms) begin transaction
9696
+  (0.0ms) rollback transaction
9697
+  (0.0ms) begin transaction
9698
+  (0.0ms) rollback transaction
9699
+  (0.0ms) begin transaction
9700
+  (0.5ms) rollback transaction
9701
+  (0.3ms) begin transaction
9702
+ Started GET "/settings" for 127.0.0.1 at 2015-08-06 21:51:04 +0300
9703
+ Processing by RailsSettingsUi::SettingsController#index as HTML
9704
+ Settings Load (0.1ms) SELECT var,value FROM "settings" WHERE (thing_type is NULL and thing_id is NULL)
9705
+ Rendered /Users/accessd/projects/rails-settings-ui/app/views/rails_settings_ui/settings/index.html.haml within layouts/rails_settings_ui/application (10.1ms)
9706
+ Completed 200 OK in 21ms (Views: 18.0ms | ActiveRecord: 0.3ms)
9707
+  (0.1ms) rollback transaction
9708
+  (0.1ms) begin transaction
9709
+ Started GET "/settings" for 127.0.0.1 at 2015-08-06 21:51:04 +0300
9710
+ Processing by RailsSettingsUi::SettingsController#index as HTML
9711
+ Settings Load (0.2ms) SELECT var,value FROM "settings" WHERE (thing_type is NULL and thing_id is NULL)
9712
+ Rendered /Users/accessd/projects/rails-settings-ui/app/views/rails_settings_ui/settings/index.html.haml within layouts/rails_settings_ui/application (3.4ms)
9713
+ Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.2ms)
9714
+  (0.1ms) rollback transaction
9715
+  (0.0ms) begin transaction
9716
+ Started GET "/settings" for 127.0.0.1 at 2015-08-06 21:51:04 +0300
9717
+ Processing by RailsSettingsUi::SettingsController#index as HTML
9718
+ Settings Load (0.1ms) SELECT var,value FROM "settings" WHERE (thing_type is NULL and thing_id is NULL)
9719
+ Rendered /Users/accessd/projects/rails-settings-ui/app/views/rails_settings_ui/settings/index.html.haml within layouts/rails_settings_ui/application (2.9ms)
9720
+ Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.1ms)
9721
+  (0.1ms) rollback transaction
9722
+  (0.0ms) begin transaction
9723
+ Started GET "/settings" for 127.0.0.1 at 2015-08-06 21:51:04 +0300
9724
+ Processing by RailsSettingsUi::SettingsController#index as HTML
9725
+ Settings Load (0.1ms) SELECT var,value FROM "settings" WHERE (thing_type is NULL and thing_id is NULL)
9726
+ Rendered /Users/accessd/projects/rails-settings-ui/app/views/rails_settings_ui/settings/index.html.haml within layouts/rails_settings_ui/application (2.5ms)
9727
+ Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms)
9728
+  (0.1ms) rollback transaction
9729
+  (0.1ms) begin transaction
9730
+ Started GET "/settings" for 127.0.0.1 at 2015-08-06 21:51:04 +0300
9731
+ Processing by RailsSettingsUi::SettingsController#index as HTML
9732
+ Settings Load (0.1ms) SELECT var,value FROM "settings" WHERE (thing_type is NULL and thing_id is NULL)
9733
+ Rendered /Users/accessd/projects/rails-settings-ui/app/views/rails_settings_ui/settings/index.html.haml within layouts/rails_settings_ui/application (2.7ms)
9734
+ Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.1ms)
9735
+  (0.1ms) rollback transaction
9736
+  (0.0ms) begin transaction
9737
+  (0.1ms) SAVEPOINT active_record_1
9738
+ SQL (0.4ms) INSERT INTO "settings" ("created_at", "updated_at", "value", "var") VALUES (?, ?, ?, ?) [["created_at", "2015-08-06 18:51:04.229342"], ["updated_at", "2015-08-06 18:51:04.229342"], ["value", "--- apple\n...\n"], ["var", "company"]]
9739
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9740
+ Started GET "/settings" for 127.0.0.1 at 2015-08-06 21:51:04 +0300
9741
+ Processing by RailsSettingsUi::SettingsController#index as HTML
9742
+ Settings Load (0.1ms) SELECT var,value FROM "settings" WHERE (thing_type is NULL and thing_id is NULL)
9743
+ Rendered /Users/accessd/projects/rails-settings-ui/app/views/rails_settings_ui/settings/index.html.haml within layouts/rails_settings_ui/application (2.7ms)
9744
+ Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.1ms)
9745
+  (0.1ms) rollback transaction
9746
+  (0.0ms) begin transaction
9747
+ Started GET "/settings" for 127.0.0.1 at 2015-08-06 21:51:04 +0300
9748
+ Processing by RailsSettingsUi::SettingsController#index as HTML
9749
+ Settings Load (0.1ms) SELECT var,value FROM "settings" WHERE (thing_type is NULL and thing_id is NULL)
9750
+ Rendered /Users/accessd/projects/rails-settings-ui/app/views/rails_settings_ui/settings/index.html.haml within layouts/rails_settings_ui/application (2.6ms)
9751
+ Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)
9752
+ Started PUT "/settings/update_all" for 127.0.0.1 at 2015-08-06 21:51:04 +0300
9753
+ Processing by RailsSettingsUi::SettingsController#update_all as HTML
9754
+ Parameters: {"utf8"=>"✓", "settings"=>{"project_name"=>"Dummy", "limit"=>"test", "style"=>"{\"border_color\"=>\"e0e0e0\", \"block_color\"=>\"ffffff\", \"title\"=>{\"font\"=>\"Tahoma\", \"size\"=>\"12\", \"color\"=>\"107821\"}}", "check_something"=>"on", "description"=>"But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful.", "mode"=>{"auto"=>"on", "manual"=>"on"}}, "commit"=>"Save all"}
9755
+ Settings Load (0.1ms) SELECT var,value FROM "settings" WHERE (thing_type is NULL and thing_id is NULL)
9756
+ Rendered /Users/accessd/projects/rails-settings-ui/app/views/rails_settings_ui/settings/index.html.haml within layouts/rails_settings_ui/application (2.9ms)
9757
+ Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.1ms)
9758
+  (0.1ms) rollback transaction
9759
+  (0.1ms) begin transaction
9760
+ Started GET "/settings" for 127.0.0.1 at 2015-08-06 21:51:04 +0300
9761
+ Processing by RailsSettingsUi::SettingsController#index as HTML
9762
+ Settings Load (0.1ms) SELECT var,value FROM "settings" WHERE (thing_type is NULL and thing_id is NULL)
9763
+ Rendered /Users/accessd/projects/rails-settings-ui/app/views/rails_settings_ui/settings/index.html.haml within layouts/rails_settings_ui/application (3.9ms)
9764
+ Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.1ms)
9765
+ Started PUT "/settings/update_all" for 127.0.0.1 at 2015-08-06 21:51:04 +0300
9766
+ Processing by RailsSettingsUi::SettingsController#update_all as HTML
9767
+ Parameters: {"utf8"=>"✓", "settings"=>{"project_name"=>"Dummy", "limit"=>"150", "style"=>"test", "check_something"=>"on", "description"=>"But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful.", "mode"=>{"auto"=>"on", "manual"=>"on"}}, "commit"=>"Save all"}
9768
+ Settings Load (0.1ms) SELECT var,value FROM "settings" WHERE (thing_type is NULL and thing_id is NULL)
9769
+ Rendered /Users/accessd/projects/rails-settings-ui/app/views/rails_settings_ui/settings/index.html.haml within layouts/rails_settings_ui/application (2.6ms)
9770
+ Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.1ms)
9771
+  (0.1ms) rollback transaction
9772
+  (0.0ms) begin transaction
9773
+ Started GET "/settings" for 127.0.0.1 at 2015-08-06 21:51:04 +0300
9774
+ Processing by RailsSettingsUi::SettingsController#index as HTML
9775
+ Settings Load (0.1ms) SELECT var,value FROM "settings" WHERE (thing_type is NULL and thing_id is NULL)
9776
+ Rendered /Users/accessd/projects/rails-settings-ui/app/views/rails_settings_ui/settings/index.html.haml within layouts/rails_settings_ui/application (2.2ms)
9777
+ Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms)
9778
+  (0.1ms) rollback transaction
9779
+  (0.0ms) begin transaction
9780
+  (0.0ms) rollback transaction
9781
+  (0.0ms) begin transaction
9782
+  (0.0ms) rollback transaction
9783
+  (0.0ms) begin transaction
9784
+  (0.0ms) rollback transaction
9785
+  (0.0ms) begin transaction
9786
+  (0.0ms) rollback transaction
9787
+  (0.0ms) begin transaction
9788
+  (0.0ms) rollback transaction
9789
+  (0.0ms) begin transaction
9790
+  (0.0ms) rollback transaction
9791
+  (0.0ms) begin transaction
9792
+  (0.0ms) rollback transaction
9793
+  (0.0ms) begin transaction
9794
+  (0.0ms) rollback transaction
9795
+  (0.0ms) begin transaction
9796
+  (0.1ms) rollback transaction
9797
+  (0.0ms) begin transaction
9798
+  (0.0ms) rollback transaction
9799
+  (0.0ms) begin transaction
9800
+  (0.0ms) rollback transaction
9801
+  (0.0ms) begin transaction
9802
+  (0.0ms) rollback transaction
9803
+  (0.0ms) begin transaction
9804
+  (0.0ms) rollback transaction
@@ -1,2 +1,2 @@
1
1
  o: ActiveSupport::Cache::Entry: @valueI"
2
- apple:ET:@created_atf1435083631.46041:@expires_in0
2
+ apple:ET:@created_atf1438887064.2359722:@expires_in0
@@ -0,0 +1,90 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Rails settings</title>
5
+ <meta charset='utf-8'>
6
+ <meta content='IE=edge,chrome=1' http-equiv='X-UA-Compatible'>
7
+ <meta content='width=device-width, initial-scale=1, maximum-scale=1' name='viewport'>
8
+
9
+ </head>
10
+ <body>
11
+ <div class='container'>
12
+ <div class='navbar navbar-default'>
13
+ <div class='container-fluid'>
14
+ <div class='navbar-header'>
15
+ <a class='navbar-brand' href='/'>Rails settings ui</a>
16
+ </div>
17
+ </div>
18
+ </div>
19
+ <div class='row'><ol class='breadcrumb'>
20
+ <li class='active'>Settings</li>
21
+ </ol>
22
+ <form accept-charset="UTF-8" action="/settings/update_all" class="form" method="post"><div style="display:none"><input name="utf8" type="hidden" value="&#x2713;" /><input name="_method" type="hidden" value="put" /></div>
23
+ <table class='table table-striped'>
24
+ <thead>
25
+ <tr>
26
+ <th>Description</th>
27
+ <th>Value</th>
28
+ </tr>
29
+ </thead>
30
+ <tbody>
31
+ <tr data-name='project_name'>
32
+ <td>translation missing: en.settings.attributes.project_name.name</td>
33
+ <td class='setting-value'>
34
+ <div class='form-group '>
35
+ <input class="form-control" id="settings_project_name" name="settings[project_name]" type="text" value="Dummy" />
36
+ </div>
37
+ </td>
38
+ </tr>
39
+ <tr data-name='limit'>
40
+ <td>translation missing: en.settings.attributes.limit.name</td>
41
+ <td class='setting-value'>
42
+ <div class='form-group '>
43
+ <input class="form-control" id="settings_limit" name="settings[limit]" type="text" value="150" />
44
+ </div>
45
+ </td>
46
+ </tr>
47
+ <tr data-name='style'>
48
+ <td>translation missing: en.settings.attributes.style.name</td>
49
+ <td class='setting-value'>
50
+ <div class='form-group '>
51
+ <textarea class="form-control" id="settings_style" name="settings[style]" rows="10">
52
+ {&quot;border_color&quot;=&gt;&quot;e0e0e0&quot;, &quot;block_color&quot;=&gt;&quot;ffffff&quot;, &quot;title&quot;=&gt;{&quot;font&quot;=&gt;&quot;Tahoma&quot;, &quot;size&quot;=&gt;&quot;12&quot;, &quot;color&quot;=&gt;&quot;107821&quot;}}</textarea>
53
+ </div>
54
+ </td>
55
+ </tr>
56
+ <tr data-name='check_something'>
57
+ <td>Check This Out!</td>
58
+ <td class='setting-value'>
59
+ <div class='form-group '>
60
+ <input id="settings_check_something" name="settings[check_something]" type="hidden" value="off" /><input checked="checked" id="settings_check_something" name="settings[check_something]" type="checkbox" /><span class="help-block">You really should check it out!</span>
61
+ </div>
62
+ </td>
63
+ </tr>
64
+ <tr data-name='description'>
65
+ <td>translation missing: en.settings.attributes.description.name</td>
66
+ <td class='setting-value'>
67
+ <div class='form-group '>
68
+ <textarea class="form-control" id="settings_description" name="settings[description]" rows="10">
69
+ But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful.</textarea>
70
+ </div>
71
+ </td>
72
+ </tr>
73
+ <tr data-name='mode'>
74
+ <td>translation missing: en.settings.attributes.mode.name</td>
75
+ <td class='setting-value'>
76
+ <div class='form-group '>
77
+ <input checked="checked" id="settings_mode_auto" name="settings[mode][auto]" style="margin: 0 10px;" type="checkbox" /><label for="settings_mode_auto" style="display: inline-block;">auto</label><input checked="checked" id="settings_mode_manual" name="settings[mode][manual]" style="margin: 0 10px;" type="checkbox" /><label for="settings_mode_manual" style="display: inline-block;">manual</label>
78
+ </div>
79
+ </td>
80
+ </tr>
81
+ </tbody>
82
+ </table>
83
+ <input class="btn btn-primary btn-lg" name="commit" type="submit" value="Save all" />
84
+ </form>
85
+
86
+ </div>
87
+ <footer></footer>
88
+ </div>
89
+ </body>
90
+ </html>
@@ -0,0 +1,90 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Rails settings</title>
5
+ <meta charset='utf-8'>
6
+ <meta content='IE=edge,chrome=1' http-equiv='X-UA-Compatible'>
7
+ <meta content='width=device-width, initial-scale=1, maximum-scale=1' name='viewport'>
8
+
9
+ </head>
10
+ <body>
11
+ <div class='container'>
12
+ <div class='navbar navbar-default'>
13
+ <div class='container-fluid'>
14
+ <div class='navbar-header'>
15
+ <a class='navbar-brand' href='/'>Rails settings ui</a>
16
+ </div>
17
+ </div>
18
+ </div>
19
+ <div class='row'><ol class='breadcrumb'>
20
+ <li class='active'>Settings</li>
21
+ </ol>
22
+ <form accept-charset="UTF-8" action="/settings/update_all" class="form" method="post"><div style="display:none"><input name="utf8" type="hidden" value="&#x2713;" /><input name="_method" type="hidden" value="put" /></div>
23
+ <table class='table table-striped'>
24
+ <thead>
25
+ <tr>
26
+ <th>Description</th>
27
+ <th>Value</th>
28
+ </tr>
29
+ </thead>
30
+ <tbody>
31
+ <tr data-name='project_name'>
32
+ <td>translation missing: en.settings.attributes.project_name.name</td>
33
+ <td class='setting-value'>
34
+ <div class='form-group '>
35
+ <input class="form-control" id="settings_project_name" name="settings[project_name]" type="text" value="Dummy" />
36
+ </div>
37
+ </td>
38
+ </tr>
39
+ <tr data-name='limit'>
40
+ <td>translation missing: en.settings.attributes.limit.name</td>
41
+ <td class='setting-value'>
42
+ <div class='form-group '>
43
+ <input class="form-control" id="settings_limit" name="settings[limit]" type="text" value="150" />
44
+ </div>
45
+ </td>
46
+ </tr>
47
+ <tr data-name='style'>
48
+ <td>translation missing: en.settings.attributes.style.name</td>
49
+ <td class='setting-value'>
50
+ <div class='form-group '>
51
+ <textarea class="form-control" id="settings_style" name="settings[style]" rows="10">
52
+ {&quot;border_color&quot;=&gt;&quot;e0e0e0&quot;, &quot;block_color&quot;=&gt;&quot;ffffff&quot;, &quot;title&quot;=&gt;{&quot;font&quot;=&gt;&quot;Tahoma&quot;, &quot;size&quot;=&gt;&quot;12&quot;, &quot;color&quot;=&gt;&quot;107821&quot;}}</textarea>
53
+ </div>
54
+ </td>
55
+ </tr>
56
+ <tr data-name='check_something'>
57
+ <td>Check This Out!</td>
58
+ <td class='setting-value'>
59
+ <div class='form-group '>
60
+ <input id="settings_check_something" name="settings[check_something]" type="hidden" value="off" /><input checked="checked" id="settings_check_something" name="settings[check_something]" type="checkbox" /><span class="help-block">You really should check it out!</span>
61
+ </div>
62
+ </td>
63
+ </tr>
64
+ <tr data-name='description'>
65
+ <td>translation missing: en.settings.attributes.description.name</td>
66
+ <td class='setting-value'>
67
+ <div class='form-group '>
68
+ <textarea class="form-control" id="settings_description" name="settings[description]" rows="10">
69
+ But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful.</textarea>
70
+ </div>
71
+ </td>
72
+ </tr>
73
+ <tr data-name='mode'>
74
+ <td>translation missing: en.settings.attributes.mode.name</td>
75
+ <td class='setting-value'>
76
+ <div class='form-group '>
77
+ <input checked="checked" id="settings_mode_auto" name="settings[mode][auto]" style="margin: 0 10px;" type="checkbox" /><label for="settings_mode_auto" style="display: inline-block;">auto</label><input checked="checked" id="settings_mode_manual" name="settings[mode][manual]" style="margin: 0 10px;" type="checkbox" /><label for="settings_mode_manual" style="display: inline-block;">manual</label>
78
+ </div>
79
+ </td>
80
+ </tr>
81
+ </tbody>
82
+ </table>
83
+ <input class="btn btn-primary btn-lg" name="commit" type="submit" value="Save all" />
84
+ </form>
85
+
86
+ </div>
87
+ <footer></footer>
88
+ </div>
89
+ </body>
90
+ </html>
@@ -0,0 +1,90 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Rails settings</title>
5
+ <meta charset='utf-8'>
6
+ <meta content='IE=edge,chrome=1' http-equiv='X-UA-Compatible'>
7
+ <meta content='width=device-width, initial-scale=1, maximum-scale=1' name='viewport'>
8
+
9
+ </head>
10
+ <body>
11
+ <div class='container'>
12
+ <div class='navbar navbar-default'>
13
+ <div class='container-fluid'>
14
+ <div class='navbar-header'>
15
+ <a class='navbar-brand' href='/'>Rails settings ui</a>
16
+ </div>
17
+ </div>
18
+ </div>
19
+ <div class='row'><ol class='breadcrumb'>
20
+ <li class='active'>Settings</li>
21
+ </ol>
22
+ <form accept-charset="UTF-8" action="/settings/update_all" class="form" method="post"><div style="display:none"><input name="utf8" type="hidden" value="&#x2713;" /><input name="_method" type="hidden" value="put" /></div>
23
+ <table class='table table-striped'>
24
+ <thead>
25
+ <tr>
26
+ <th>Description</th>
27
+ <th>Value</th>
28
+ </tr>
29
+ </thead>
30
+ <tbody>
31
+ <tr data-name='project_name'>
32
+ <td>translation missing: en.settings.attributes.project_name.name</td>
33
+ <td class='setting-value'>
34
+ <div class='form-group '>
35
+ <input class="form-control" id="settings_project_name" name="settings[project_name]" type="text" value="Dummy" />
36
+ </div>
37
+ </td>
38
+ </tr>
39
+ <tr data-name='limit'>
40
+ <td>translation missing: en.settings.attributes.limit.name</td>
41
+ <td class='setting-value'>
42
+ <div class='form-group '>
43
+ <input class="form-control" id="settings_limit" name="settings[limit]" type="text" value="150" />
44
+ </div>
45
+ </td>
46
+ </tr>
47
+ <tr data-name='style'>
48
+ <td>translation missing: en.settings.attributes.style.name</td>
49
+ <td class='setting-value'>
50
+ <div class='form-group '>
51
+ <textarea class="form-control" id="settings_style" name="settings[style]" rows="10">
52
+ {&quot;border_color&quot;=&gt;&quot;e0e0e0&quot;, &quot;block_color&quot;=&gt;&quot;ffffff&quot;, &quot;title&quot;=&gt;{&quot;font&quot;=&gt;&quot;Tahoma&quot;, &quot;size&quot;=&gt;&quot;12&quot;, &quot;color&quot;=&gt;&quot;107821&quot;}}</textarea>
53
+ </div>
54
+ </td>
55
+ </tr>
56
+ <tr data-name='check_something'>
57
+ <td>Check This Out!</td>
58
+ <td class='setting-value'>
59
+ <div class='form-group '>
60
+ <input id="settings_check_something" name="settings[check_something]" type="hidden" value="off" /><input checked="checked" id="settings_check_something" name="settings[check_something]" type="checkbox" /><span class="help-block">You really should check it out!</span>
61
+ </div>
62
+ </td>
63
+ </tr>
64
+ <tr data-name='description'>
65
+ <td>translation missing: en.settings.attributes.description.name</td>
66
+ <td class='setting-value'>
67
+ <div class='form-group '>
68
+ <textarea class="form-control" id="settings_description" name="settings[description]" rows="10">
69
+ But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful.</textarea>
70
+ </div>
71
+ </td>
72
+ </tr>
73
+ <tr data-name='mode'>
74
+ <td>translation missing: en.settings.attributes.mode.name</td>
75
+ <td class='setting-value'>
76
+ <div class='form-group '>
77
+ <input checked="checked" id="settings_mode_auto" name="settings[mode][auto]" style="margin: 0 10px;" type="checkbox" /><label for="settings_mode_auto" style="display: inline-block;">auto</label><input checked="checked" id="settings_mode_manual" name="settings[mode][manual]" style="margin: 0 10px;" type="checkbox" /><label for="settings_mode_manual" style="display: inline-block;">manual</label>
78
+ </div>
79
+ </td>
80
+ </tr>
81
+ </tbody>
82
+ </table>
83
+ <input class="btn btn-primary btn-lg" name="commit" type="submit" value="Save all" />
84
+ </form>
85
+
86
+ </div>
87
+ <footer></footer>
88
+ </div>
89
+ </body>
90
+ </html>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-settings-ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Morskov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-23 00:00:00.000000000 Z
11
+ date: 2015-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -52,34 +52,6 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: sass-rails
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: 4.0.0
62
- type: :runtime
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: 4.0.0
69
- - !ruby/object:Gem::Dependency
70
- name: bootstrap-sass
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: 3.2.0
76
- type: :runtime
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: 3.2.0
83
55
  - !ruby/object:Gem::Dependency
84
56
  name: rspec-rails
85
57
  requirement: !ruby/object:Gem::Requirement
@@ -146,7 +118,6 @@ files:
146
118
  - MIT-LICENSE
147
119
  - README.md
148
120
  - Rakefile
149
- - app/assets/stylesheets/rails_settings_ui/application.css.scss
150
121
  - app/controllers/rails_settings_ui/application_controller.rb
151
122
  - app/controllers/rails_settings_ui/settings_controller.rb
152
123
  - app/helpers/rails_settings_ui/settings_helper.rb
@@ -291,6 +262,9 @@ files:
291
262
  - spec/dummy/tmp/capybara/capybara-201403251029034025293240.html
292
263
  - spec/dummy/tmp/capybara/capybara-201407142218044166461911.html
293
264
  - spec/dummy/tmp/capybara/capybara-201506232120315215937316.html
265
+ - spec/dummy/tmp/capybara/capybara-20150806215043930368374.html
266
+ - spec/dummy/tmp/capybara/capybara-20150806215052828612801.html
267
+ - spec/dummy/tmp/capybara/capybara-201508062151043307563970.html
294
268
  - spec/features/settings_spec.rb
295
269
  - spec/lib/rails-settings-ui/type_converter_spec.rb
296
270
  - spec/lib/rails-settings-ui/value_types/array_spec.rb
@@ -446,6 +420,9 @@ test_files:
446
420
  - spec/dummy/tmp/capybara/capybara-201403251029034025293240.html
447
421
  - spec/dummy/tmp/capybara/capybara-201407142218044166461911.html
448
422
  - spec/dummy/tmp/capybara/capybara-201506232120315215937316.html
423
+ - spec/dummy/tmp/capybara/capybara-20150806215043930368374.html
424
+ - spec/dummy/tmp/capybara/capybara-20150806215052828612801.html
425
+ - spec/dummy/tmp/capybara/capybara-201508062151043307563970.html
449
426
  - spec/features/settings_spec.rb
450
427
  - spec/lib/rails-settings-ui/type_converter_spec.rb
451
428
  - spec/lib/rails-settings-ui/value_types/array_spec.rb
@@ -1 +0,0 @@
1
- @import 'bootstrap';