bluepotion 0.0.6 → 0.0.7

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: e1269e673a82db0773ddc49cb7df61454dccadaf
4
- data.tar.gz: 446e9c81af4c541bc68517dcedd9da7dd03a19a7
3
+ metadata.gz: d6f3f2586907e1d47fe1d01cb1f77bb132ddbf9e
4
+ data.tar.gz: 32f91082af4bf994b35f4155323ef13bcc3de509
5
5
  SHA512:
6
- metadata.gz: d5edb28a8794f8a4dd6efa62bc26ca85b8e8ebc7d261b7b4e79fa73adf8e9de9967fc6e9326c0dda14828bde7207ae43065af54e57ce05b7c9fe1d6bf850b22d
7
- data.tar.gz: 172449e7d0750e91274c0daba5e2ceb3c0071d8012e9184e8279b3d4a85aee3267b197be0e4b9ccca7c59824408514edcdc4510688ad07754fa3d6d5f141dcfe
6
+ metadata.gz: 38206bb411a17e09f01aef1e110485ea140a63d5209e046523e0f37b444d0abc1edf562457c8d88210a1bc69efe578fe62ec2059d88ba594f7fb1283b36448d9
7
+ data.tar.gz: d3c256a89df9fabd43f3fa9379bd35b8e12c92a73f6680da6d1fae09c3cf06c9be92c9f71b8e4171cbde828d528add044674f520f818265e5cfcbeeb3c1102ad
data/bin/bluepotion CHANGED
@@ -96,7 +96,7 @@ class PotionCommandLine
96
96
  end
97
97
 
98
98
  def insert_from_template(template_name, name)
99
- return unless %w{screenl}.include? template_name
99
+ return unless %w{screen}.include? template_name
100
100
 
101
101
  puts "\n Creating #{template_name}: #{name}\n\n"
102
102
 
@@ -79,7 +79,7 @@ class Object
79
79
  else
80
80
  s = s.to_s
81
81
  end
82
- backspace = "\b\b " * (Android::App::Application.name.length + 13)
82
+ backspace = "\b\b " * (Android::App::Application.name.length + 20)
83
83
  lines = s.split("\n")
84
84
  lines.each do |line|
85
85
  if RMQ.debugging?
@@ -17,9 +17,8 @@
17
17
  end
18
18
 
19
19
  action_bar.hide if hide_action_bar?
20
- setup_xml_widgets
20
+ tag_xml_widgets_with_their_id
21
21
 
22
- # TODO: how will we pass this back if we don't use XML?
23
22
  @view
24
23
  end
25
24
 
@@ -50,10 +49,16 @@
50
49
 
51
50
  private
52
51
 
53
- def setup_xml_widgets
52
+ def tag_xml_widgets_with_their_id
54
53
  return unless (xml_widget_ids = self.class.xml_widget_ids)
54
+
55
+ package_name = activity.getApplicationInfo.packageName
56
+ key = "id"
55
57
  xml_widget_ids.each do |id|
56
- instance_variable_set("@#{id.to_s}".to_sym, find(id))
58
+ id_s = id.to_s
59
+ resource_id = resources.getIdentifier(id_s, key, package_name)
60
+ view = @view.findViewById(resource_id)
61
+ view.rmq_data.tag(id_s.to_sym)
57
62
  end
58
63
  end
59
64
 
@@ -1,3 +1,3 @@
1
1
  module BluePotion
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bluepotion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - InfiniteRed
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-26 00:00:00.000000000 Z
11
+ date: 2015-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake