circle_speech_balloon 0.0.54 → 0.0.55

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "circle@pettan.com": {
3
- "classname": "CircleSpeechBalloon",
3
+ "module_name": "CircleSpeechBalloon",
4
4
  "caption": "楕円",
5
5
  "system_picture_file": "icon.png",
6
6
  "settings": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "circle@pettan.com": {
3
- "classname": "CircleSpeechBalloon",
3
+ "module_name": "CircleSpeechBalloon",
4
4
  "caption": "楕円",
5
5
  "settings": {
6
6
  "speech_balloon": {
@@ -4,7 +4,7 @@ module CircleSpeechBalloon
4
4
  module SpeechBalloonModule
5
5
  def supply_default
6
6
  super
7
- self.speech_balloon_template_classname = self.speech_balloon_template.classname
7
+ self.speech_balloon_template_module_name = self.speech_balloon_template.module_name
8
8
  end
9
9
 
10
10
  def speech_balloon_extend
@@ -1,3 +1,3 @@
1
1
  module CircleSpeechBalloon
2
- VERSION = "0.0.54"
2
+ VERSION = "0.0.55"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: circle_speech_balloon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.54
4
+ version: 0.0.55
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-06-09 00:00:00.000000000 Z
12
+ date: 2014-06-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sqlite3
@@ -51,12 +51,7 @@ files:
51
51
  - app/models/circle_speech_balloon/balloon.rb
52
52
  - app/models/circle_speech_balloon/speech.rb
53
53
  - app/models/circle_speech_balloon/speech_balloon.rb
54
- - app/views/circle_speech_balloon/balloons/_form.html.erb
55
- - app/views/circle_speech_balloon/speeches/_form.html.erb
56
- - app/views/circle_speech_balloon/speech_balloons/edit.html.erb
57
- - app/views/circle_speech_balloon/speech_balloons/new.html.erb
58
54
  - app/views/circle_speech_balloon/speech_balloons/show.html.erb
59
- - app/views/circle_speech_balloon/speech_balloons/_form.html.erb
60
55
  - app/views/circle_speech_balloon/speech_balloons/_scenario.html.erb
61
56
  - app/views/circle_speech_balloon/speech_balloons/_standard.html.erb
62
57
  - app/views/layouts/circle_speech_balloon/application.html.erb
@@ -1,40 +0,0 @@
1
- <div id="<%= balloon.field_tag_id(:form) %>" classname="<%= balloon.classname %>">
2
- <div class="field">
3
- <%= f.label :r %>
4
- <%= f.number_field :r, balloon.field_tag_attributes(:r, no_attr, :size => 5) %>
5
- <% if balloon.has_helper?(:r) %>
6
- <%# render balloon.form_helper_template(:r), :elm => balloon, :no_attr => no_attr %>
7
- <% end %>
8
- </div>
9
- <div class="row_break">
10
- </div>
11
-
12
- <div class="field">
13
- <%= f.label :x %>
14
- <%= f.number_field :x, balloon.field_tag_attributes(:x, no_attr, :size => 5) %>
15
-
16
- <%= f.label :y %>
17
- <%= f.number_field :y, balloon.field_tag_attributes(:y, no_attr, :size => 5) %>
18
- </div>
19
- <div class="row_break">
20
- </div>
21
-
22
- <div class="field">
23
- <%= f.label :width %>
24
- <%= f.number_field :width, balloon.field_tag_attributes(:width, no_attr, :size => 5) %>
25
-
26
- <%= f.label :height %>
27
- <%= f.number_field :height, balloon.field_tag_attributes(:height, no_attr, :size => 5) %>
28
- </div>
29
- <div class="row_break">
30
- </div>
31
- <div class="row_break">
32
- </div>
33
-
34
- <%= f.hidden_field :system_picture_id, balloon.field_tag_attributes(:system_picture_id, no_attr) %>
35
- <%= f.hidden_field :settings, balloon.field_tag_attributes(:settings, no_attr) %>
36
- <%= f.hidden_field :speech_balloon_id, balloon.field_tag_attributes(:speech_balloon_id, no_attr) %>
37
- <% unless balloon.new_record? %>
38
- <%= f.hidden_field :id, balloon.field_tag_attributes(:id, no_attr) %>
39
- <% end %>
40
- </div>
@@ -1,44 +0,0 @@
1
- <%= form_for(elm) do |f| %>
2
- <%= render 'system/error_explanation', :obj => elm %>
3
- <%= render 'system/error_explanation', :obj => elm.extend_speech_balloon %>
4
- <%= render 'system/error_explanation', :obj => elm.balloon.extend_balloon %>
5
- <%= render 'system/error_explanation', :obj => elm.speech.extend_speech %>
6
-
7
- <div class="field">
8
- <%= f.label :caption %>
9
- <%= f.number_field :caption, elm.field_tag_attributes(:caption, no_attr) %>
10
- </div>
11
- <div class="row_break">
12
- </div>
13
- <%= f.fields_for(:speech) do |sf| %>
14
- <%= render elm.speech_form_template, :f => sf, :speech => elm.get_speech, :no_attr => no_attr %>
15
- <% end %>
16
-
17
- <%= f.fields_for(:balloon) do |bf| %>
18
- <%= render elm.balloon_form_template, :f => bf, :balloon => elm.get_balloon, :no_attr => no_attr %>
19
- <% end %>
20
-
21
- <div class="field">
22
- <%= f.label :z %>
23
- <%= f.number_field :z, elm.field_tag_attributes(:z, no_attr, :size => 5) %>
24
-
25
- <%= f.label :t %>
26
- <%= f.number_field :t, elm.field_tag_attributes(:t, no_attr, :size => 5) %>
27
- </div>
28
- <div class="row_break">
29
- </div>
30
-
31
- <%= f.hidden_field :panel_id, elm.field_tag_attributes(:panel_id, no_attr) %>
32
- <%= f.hidden_field :classname, elm.field_tag_attributes(:classname, no_attr) %>
33
- <%= f.hidden_field :speech_balloon_template_id, elm.field_tag_attributes(:speech_balloon_template_id, no_attr) %>
34
- <% unless elm.new_record? %>
35
- <%= f.hidden_field :id, elm.field_tag_attributes(:id, no_attr) %>
36
- <% end %>
37
-
38
- <div class="actions">
39
- <%= f.submit t('speech_balloons.submit'), :class => "submit" %>
40
- </div>
41
- <% if no_attr > 0 %>
42
- <div class="submit-new-form" panel_id="<%= elm.tag_panel_id -%>" element_type="<%= elm.tag_element_type -%>"></div>
43
- <% end %>
44
- <% end %>
@@ -1,7 +0,0 @@
1
- <h1><%= t('speech_balloons.edit.title') %></h1>
2
- <p id="notice"><%= notice %></p>
3
-
4
- <h2><%= t('home.index.catch') -%></h2>
5
- <%= render 'panels/standard', :panel => @panel, :operators => @operators %>
6
- <h2><%= t('speech_balloons.update_speech_balloon') -%></h2>
7
- <%= render @speech_balloon.form_template, :elm => @speech_balloon, :no_attr => 0 %>
@@ -1,7 +0,0 @@
1
- <h1><%= t('speech_balloons.new.title') %></h1>
2
- <p id="notice"><%= notice %></p>
3
-
4
- <h2><%= t('home.index.catch') -%></h2>
5
- <%= render 'panels/standard', :panel => @panel, :operators => @operators %>
6
- <h2><%= t('speech_balloons.create_speech_balloon') -%></h2>
7
- <%= render @speech_balloon.form_template, :elm => @speech_balloon, :no_attr => 0 %>
@@ -1,49 +0,0 @@
1
- <div class="field">
2
- <%= f.label :writing_format_id %>
3
- <%= f.collection_select :writing_format_id, WritingFormat.list.map {|l| [l.caption, l.id] }, *speech.select_tag_attributes(speech.writing_format_id, :writing_format_id, no_attr) %>
4
-
5
- <%= f.label :font_size %>
6
- <%= f.collection_select :font_size, t_select_items(manifest.select_items['magic_number']['speech_font_size_items']), *speech.select_tag_attributes(speech.font_size, :font_size, no_attr) %>
7
- </div>
8
- <div class="row_break">
9
- </div>
10
-
11
- <div class="field">
12
- <%= f.label :text_align %>
13
- <%= f.collection_select :text_align, t_select_items(manifest.select_items['magic_number']['speech_text_align_items']), *speech.select_tag_attributes(speech.text_align, :text_align, no_attr) %>
14
-
15
- <%= f.label :quotes %>
16
- <%= f.text_field :quotes, speech.field_tag_attributes(:quotes, no_attr, :size => 5) %>
17
- </div>
18
- <div class="row_break">
19
- </div>
20
-
21
- <div class="field">
22
- <%= f.label :content %><br />
23
- <%= f.text_area :content, speech.field_tag_attributes(:content, no_attr, :size => ' 45x5') %>
24
- </div>
25
- <div class="row_break">
26
- </div>
27
-
28
- <div class="field">
29
- <%= f.label :fore_color %>
30
- <%= f.text_field :fore_color, speech.field_tag_attributes(:fore_color, no_attr, :size => 8) %>
31
- <% if speech.has_helper?(:fore_color) %>
32
- <div class="speech-fore_color-wrap">
33
- <%# render speech.form_helper_template(:fore_color), :elm => speech, :no_attr => no_attr %>
34
- </div>
35
- <% end %>
36
- </div>
37
- <div class="row_break">
38
- </div>
39
-
40
- <%= f.hidden_field :x, speech.field_tag_attributes(:x, no_attr) %>
41
- <%= f.hidden_field :y, speech.field_tag_attributes(:y, no_attr) %>
42
- <%= f.hidden_field :width, speech.field_tag_attributes(:width, no_attr) %>
43
- <%= f.hidden_field :height, speech.field_tag_attributes(:height, no_attr) %>
44
- <%= f.hidden_field :settings, speech.field_tag_attributes(:settings, no_attr) %>
45
- <%= f.hidden_field :speech_balloon_id, speech.field_tag_attributes(:speech_balloon_id, no_attr) %>
46
-
47
- <% unless speech.new_record? %>
48
- <%= f.hidden_field :id, speech.field_tag_attributes(:id, no_attr) %>
49
- <% end %>