locales_panel 0.1.0 → 0.1.1

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: 98f974904e1fa5012d9fa68f5778a77dfd2bd765
4
- data.tar.gz: 155b03e8e86558f632aecdd17daebab0b8ab6cf5
3
+ metadata.gz: 750a52cd53d5948a7fb7988fffdf3b73b7a3b496
4
+ data.tar.gz: c0f764ecca2f95c84aa81b3bfe29d144e8ed04f0
5
5
  SHA512:
6
- metadata.gz: 2178e7be0d684c25359b7a5fa45a41a0b8f966150b82b41179434fe6464a60c62fbaa1f58a49a19fe0c8d425af89bc75d6a1c9a84af0997e40f9911dd7eed103
7
- data.tar.gz: 3478ecbf20720d1ba76cf0c57f57c6b16e300a3bb0d525d784d2e1bd07cabe74cf6d60a7b706dbf3aac90182d1461ec6f63959f58fbe25dad04b2fd0d4e6b287
6
+ metadata.gz: 49ecd485c77d882b84c70d369e4c431c75b6058cfcc5f0e76ffa00543abd6e0b3d0c97b0f527728e084dcc8ddf2802c89c2fbbca36ed1e3dca7e7688c93f1bcc
7
+ data.tar.gz: 7bdcffd741097ef689a4d343f3edc1762dc9355919100ad980041d64a74cdbd898a7b535b56120c0e923522a07b12dac61286cf66b610faba9b258609c1ee3ac
@@ -1,8 +1,8 @@
1
1
  <%= form_tag(locales_path, method: :put) do %>
2
2
  <% @files.each do |file| %>
3
3
  <h2><%= file[:name] %></h2>
4
- <input type="hidden" name="files[]['path']" value="<%= file[:path] %>" />
5
- <textarea name="files[]['content']" cols="80" rows="20"><%= file[:content] %></textarea>
4
+ <input type="hidden" name="files[][path]" value="<%= file[:path] %>" />
5
+ <textarea name="files[][content]" cols="80" rows="20" wrap="off" style="width:100%"><%= file[:content] %></textarea>
6
6
  <% end %>
7
7
  <input type="submit" />
8
8
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module LocalesPanel
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -785,3 +785,47 @@ ActionView::MissingTemplate (Missing template locales/update, application/update
785
785
  Started PUT "/locales" for ::1 at 2015-04-01 20:13:25 +0200
786
786
  Processing by LocalesController#update as HTML
787
787
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"bfu86TrGuQTlcuVqoMb1/PIAfKfV5b7Ttp8ubWTaB7/E4hSMdTywN8sZtluNJMwZfEqPrmbDfgY8PWxGHNX9FQ==", "files"=>[{"'path'"=>"/Users/lokson/locales_panel/test/dummy/config/locales/en.yml", "'content'"=>"en:\r\n hello: \"Hello world\"\r\n"}, {"'path'"=>"/Users/lokson/locales_panel/test/dummy/config/locales/pl.yml", "'content'"=>"pl:\r\n hello: \"Witaj świecie\"\r\n"}]}
788
+
789
+
790
+ Started GET "/" for 127.0.0.1 at 2015-04-02 18:54:04 +0200
791
+ Processing by Rails::WelcomeController#index as HTML
792
+ Rendered /Users/lokson/.rvm/gems/ruby-2.2.0@locales_panel/gems/railties-4.2.1/lib/rails/templates/rails/welcome/index.html.erb (2.6ms)
793
+ Completed 200 OK in 9ms (Views: 8.6ms)
794
+
795
+
796
+ Started GET "/locales/edit" for 127.0.0.1 at 2015-04-02 18:54:08 +0200
797
+ Processing by LocalesController#edit as HTML
798
+ Rendered /Users/lokson/locales_panel/app/views/locales/edit.html.erb within layouts/application (20.7ms)
799
+ Completed 200 OK in 43ms (Views: 42.8ms)
800
+
801
+
802
+ Started GET "/assets/application-5266d2988799ecc8fe6e81eaab412e7d.css?body=1" for 127.0.0.1 at 2015-04-02 18:54:08 +0200
803
+
804
+
805
+ Started GET "/assets/application-5239015df4ee7c66e1719761a86bff3c.js?body=1" for 127.0.0.1 at 2015-04-02 18:54:08 +0200
806
+
807
+
808
+ Started PUT "/locales" for 127.0.0.1 at 2015-04-02 18:54:45 +0200
809
+ Processing by LocalesController#update as HTML
810
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"Y5dWQq7KCzt7MVY9EkTaglBLqbzUaNtA8qF/oqYHL9QvFRw+7OPx6djeqJXFxq7pY252sKzT4ZF+eRye3r1IEw==", "files"=>[{"path"=>"/Users/lokson/locales_panel/test/dummy/config/locales/en.yml", "content"=>"en:\r\n hello: \"Hello world edit\"\r\n"}, {"path"=>"/Users/lokson/locales_panel/test/dummy/config/locales/pl.yml", "content"=>"pl:\r\n hello: \"Witaj świecie\"\r\n"}]}
811
+ Redirected to http://localhost:3000/locales/edit
812
+ Completed 302 Found in 10ms
813
+
814
+
815
+ Started GET "/locales/edit" for 127.0.0.1 at 2015-04-02 18:54:45 +0200
816
+ Processing by LocalesController#edit as HTML
817
+ Rendered /Users/lokson/locales_panel/app/views/locales/edit.html.erb within layouts/application (0.7ms)
818
+ Completed 200 OK in 14ms (Views: 14.0ms)
819
+
820
+
821
+ Started PUT "/locales" for 127.0.0.1 at 2015-04-02 18:54:58 +0200
822
+ Processing by LocalesController#update as HTML
823
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"bzOhnLdmGuyMlw+6EumfRk264pRfkvpGl94i39yzyYkjsevg9U/gPi948RLFa+stfp89mCcpwJcbBkHjpAmuTg==", "files"=>[{"path"=>"/Users/lokson/locales_panel/test/dummy/config/locales/en.yml", "content"=>"en:\r\n hello: \"Hello world\"\r\n"}, {"path"=>"/Users/lokson/locales_panel/test/dummy/config/locales/pl.yml", "content"=>"pl:\r\n hello: \"Witaj świecie\"\r\n"}]}
824
+ Redirected to http://localhost:3000/locales/edit
825
+ Completed 302 Found in 9ms
826
+
827
+
828
+ Started GET "/locales/edit" for 127.0.0.1 at 2015-04-02 18:54:58 +0200
829
+ Processing by LocalesController#edit as HTML
830
+ Rendered /Users/lokson/locales_panel/app/views/locales/edit.html.erb within layouts/application (1.5ms)
831
+ Completed 200 OK in 15ms (Views: 14.4ms)
@@ -321,3 +321,18 @@ Processing by LocalesController#update as HTML
321
321
  Parameters: {"files"=>[{"path"=>"/Users/lokson/locales_panel/test/dummy/config/locales/en.yml", "content"=>"en:\r\n hello: \"Edited\""}, {"path"=>"/Users/lokson/locales_panel/test/dummy/config/locales/pl.yml", "content"=>"pl:\r\n hello: \"Zmienione\""}]}
322
322
  Redirected to http://www.example.com/locales/edit
323
323
  Completed 302 Found in 1ms
324
+ ----------------------
325
+ LocalesTest: test_edit
326
+ ----------------------
327
+ Started GET "/locales/edit" for 127.0.0.1 at 2015-04-02 18:46:46 +0200
328
+ Processing by LocalesController#edit as HTML
329
+ Rendered /Users/lokson/locales_panel/app/views/locales/edit.html.erb within layouts/application (2.0ms)
330
+ Completed 200 OK in 17ms (Views: 16.7ms)
331
+ ------------------------
332
+ LocalesTest: test_update
333
+ ------------------------
334
+ Started PUT "/locales" for 127.0.0.1 at 2015-04-02 18:46:46 +0200
335
+ Processing by LocalesController#update as HTML
336
+ Parameters: {"files"=>[{"path"=>"/Users/lokson/locales_panel/test/dummy/config/locales/en.yml", "content"=>"en:\r\n hello: \"Edited\""}, {"path"=>"/Users/lokson/locales_panel/test/dummy/config/locales/pl.yml", "content"=>"pl:\r\n hello: \"Zmienione\""}]}
337
+ Redirected to http://www.example.com/locales/edit
338
+ Completed 302 Found in 1ms
@@ -1 +1 @@
1
- 664
1
+ 5612
@@ -27,7 +27,6 @@ class LocalesTest < ActionDispatch::IntegrationTest
27
27
  put locales_path, files: [{path: DUMMY_CONFIG_DIR+'/locales/en.yml', content: "en:\r\n hello: \"Edited\""}, {path: DUMMY_CONFIG_DIR+'/locales/pl.yml', content: "pl:\r\n hello: \"Zmienione\""}]
28
28
  assert_equal "en:\r\n hello: \"Edited\"", File.read(DUMMY_CONFIG_DIR+'/locales/en.yml')
29
29
  assert_equal "pl:\r\n hello: \"Zmienione\"", File.read(DUMMY_CONFIG_DIR+'/locales/pl.yml')
30
- byebug
31
30
  restore_dummy_locales
32
31
  end
33
32
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: locales_panel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maciej Kasprzyk
@@ -32,7 +32,6 @@ extensions: []
32
32
  extra_rdoc_files: []
33
33
  files:
34
34
  - MIT-LICENSE
35
- - README.rdoc
36
35
  - Rakefile
37
36
  - app/controllers/locales_controller.rb
38
37
  - app/views/locales/edit.html.erb
data/README.rdoc DELETED
@@ -1,3 +0,0 @@
1
- = LocalesPanel
2
-
3
- This project rocks and uses MIT-LICENSE.