bluepotion 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +10 -0
  3. data/lib/bluepotion.rb +16 -0
  4. data/lib/project/ext/activity.rb +62 -0
  5. data/lib/project/ext/array_list.rb +25 -0
  6. data/lib/project/ext/fragment.rb +2 -0
  7. data/lib/project/ext/object.rb +105 -0
  8. data/lib/project/ext/string.rb +23 -0
  9. data/lib/project/ext/view.rb +81 -0
  10. data/lib/project/potion.rb +50 -0
  11. data/lib/project/pro_motion/pm_activity.rb +38 -0
  12. data/lib/project/pro_motion/pm_application.rb +71 -0
  13. data/lib/project/pro_motion/pm_home_activity.rb +14 -0
  14. data/lib/project/pro_motion/pm_screen.rb +67 -0
  15. data/lib/project/pro_motion/pm_screen_module.rb +165 -0
  16. data/lib/project/pro_motion/pm_single_fragment_activity.rb +31 -0
  17. data/lib/project/ruby_motion_query/rmq/actions.rb +48 -0
  18. data/lib/project/ruby_motion_query/rmq/base.rb +260 -0
  19. data/lib/project/ruby_motion_query/rmq/data.rb +64 -0
  20. data/lib/project/ruby_motion_query/rmq/debug.rb +9 -0
  21. data/lib/project/ruby_motion_query/rmq/enumerablish.rb +99 -0
  22. data/lib/project/ruby_motion_query/rmq/events.rb +28 -0
  23. data/lib/project/ruby_motion_query/rmq/factory.rb +47 -0
  24. data/lib/project/ruby_motion_query/rmq/position.rb +2 -0
  25. data/lib/project/ruby_motion_query/rmq/selectors.rb +72 -0
  26. data/lib/project/ruby_motion_query/rmq/styles.rb +108 -0
  27. data/lib/project/ruby_motion_query/rmq/subviews.rb +95 -0
  28. data/lib/project/ruby_motion_query/rmq/tags.rb +58 -0
  29. data/lib/project/ruby_motion_query/rmq/traverse.rb +287 -0
  30. data/lib/project/ruby_motion_query/rmq/utils.rb +36 -0
  31. data/lib/project/ruby_motion_query/rmq/version.rb +6 -0
  32. data/lib/project/ruby_motion_query/rmq_activity_data.rb +3 -0
  33. data/lib/project/ruby_motion_query/rmq_app.rb +9 -0
  34. data/lib/project/ruby_motion_query/rmq_color.rb +121 -0
  35. data/lib/project/ruby_motion_query/rmq_device.rb +47 -0
  36. data/lib/project/ruby_motion_query/rmq_event.rb +1 -0
  37. data/lib/project/ruby_motion_query/rmq_font.rb +61 -0
  38. data/lib/project/ruby_motion_query/rmq_image.rb +55 -0
  39. data/lib/project/ruby_motion_query/rmq_rect.rb +576 -0
  40. data/lib/project/ruby_motion_query/rmq_screen_data.rb +3 -0
  41. data/lib/project/ruby_motion_query/rmq_stylesheet.rb +39 -0
  42. data/lib/project/ruby_motion_query/rmq_view_data.rb +88 -0
  43. data/lib/project/ruby_motion_query/stylers/rmq_button_styler.rb +3 -0
  44. data/lib/project/ruby_motion_query/stylers/rmq_image_button_styler.rb +3 -0
  45. data/lib/project/ruby_motion_query/stylers/rmq_image_view_styler.rb +24 -0
  46. data/lib/project/ruby_motion_query/stylers/rmq_linear_layout_styler.rb +32 -0
  47. data/lib/project/ruby_motion_query/stylers/rmq_relative_layout_styler.rb +7 -0
  48. data/lib/project/ruby_motion_query/stylers/rmq_styler_helper.rb +3 -0
  49. data/lib/project/ruby_motion_query/stylers/rmq_text_view_styler.rb +50 -0
  50. data/lib/project/ruby_motion_query/stylers/rmq_view_styler.rb +201 -0
  51. data/lib/project/version.rb +3 -0
  52. data/templates/screen/app/screens/name_screen.rb +20 -0
  53. data/templates/screen/app/stylesheets/name_screen_stylesheet.rb +24 -0
  54. data/templates/screen/spec/screens/name_screen_spec.rb +8 -0
  55. metadata +119 -0
@@ -0,0 +1,3 @@
1
+ module BluePotion
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,20 @@
1
+ class <%= @name_camel_case %>Screen < PMScreen
2
+
3
+ # If you are using XML for this screen:
4
+ #uses_xml :xml_file_name
5
+ #xml_widgets :some_widget
6
+ #xml_fragments :some_fragment
7
+
8
+ uses_action_bar true
9
+ title "Your title here"
10
+ stylesheet <%= @name_camel_case %>ScreenStylesheet
11
+
12
+ # This is optional, it will default to a RelativeView
13
+ #def load_view
14
+ #Potion::LinearLayout.new(self.activity)
15
+ #end
16
+
17
+ def on_load
18
+ append_view(Potion::TextView, :hello_label)
19
+ end
20
+ end
@@ -0,0 +1,24 @@
1
+ class <%= @name_camel_case %>ScreenStylesheet < ApplicationStylesheet
2
+ # Add your view stylesheets here. You can then override styles if needed,
3
+ # example: include FooStylesheet
4
+
5
+ def setup
6
+ # Add stylesheet specific setup stuff here.
7
+ # Add application specific setup stuff in application_stylesheet.rb
8
+ end
9
+
10
+ def root_view(st)
11
+ st.layout_width = :full
12
+ st.layout_height = :full
13
+ st.gravity = :center
14
+ end
15
+
16
+ def hello_label(st)
17
+ st.layout_width = :wrap_content
18
+ st.layout_height = :wrap_content
19
+ st.margin_bottom = 12
20
+ st.font = font.large
21
+ st.color = color.black
22
+ st.text = "Hello"
23
+ end
24
+ end
@@ -0,0 +1,8 @@
1
+ describe '<%= @name_camel_case %>Screen' do
2
+
3
+ before do
4
+ end
5
+
6
+ after do
7
+ end
8
+ end
metadata ADDED
@@ -0,0 +1,119 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bluepotion
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - InfiniteRed
8
+ - ClearSight Studio
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2015-05-24 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rake
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: '0'
21
+ type: :development
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ version: '0'
28
+ description: BluePotion - Just like RedPotion, but for Android
29
+ email:
30
+ - hello@infinitered.com
31
+ - hello@clearsightstudio.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - README.md
37
+ - lib/bluepotion.rb
38
+ - lib/project/ext/activity.rb
39
+ - lib/project/ext/array_list.rb
40
+ - lib/project/ext/fragment.rb
41
+ - lib/project/ext/object.rb
42
+ - lib/project/ext/string.rb
43
+ - lib/project/ext/view.rb
44
+ - lib/project/potion.rb
45
+ - lib/project/pro_motion/pm_activity.rb
46
+ - lib/project/pro_motion/pm_application.rb
47
+ - lib/project/pro_motion/pm_home_activity.rb
48
+ - lib/project/pro_motion/pm_screen.rb
49
+ - lib/project/pro_motion/pm_screen_module.rb
50
+ - lib/project/pro_motion/pm_single_fragment_activity.rb
51
+ - lib/project/ruby_motion_query/rmq/actions.rb
52
+ - lib/project/ruby_motion_query/rmq/base.rb
53
+ - lib/project/ruby_motion_query/rmq/data.rb
54
+ - lib/project/ruby_motion_query/rmq/debug.rb
55
+ - lib/project/ruby_motion_query/rmq/enumerablish.rb
56
+ - lib/project/ruby_motion_query/rmq/events.rb
57
+ - lib/project/ruby_motion_query/rmq/factory.rb
58
+ - lib/project/ruby_motion_query/rmq/position.rb
59
+ - lib/project/ruby_motion_query/rmq/selectors.rb
60
+ - lib/project/ruby_motion_query/rmq/styles.rb
61
+ - lib/project/ruby_motion_query/rmq/subviews.rb
62
+ - lib/project/ruby_motion_query/rmq/tags.rb
63
+ - lib/project/ruby_motion_query/rmq/traverse.rb
64
+ - lib/project/ruby_motion_query/rmq/utils.rb
65
+ - lib/project/ruby_motion_query/rmq/version.rb
66
+ - lib/project/ruby_motion_query/rmq_activity_data.rb
67
+ - lib/project/ruby_motion_query/rmq_app.rb
68
+ - lib/project/ruby_motion_query/rmq_color.rb
69
+ - lib/project/ruby_motion_query/rmq_device.rb
70
+ - lib/project/ruby_motion_query/rmq_event.rb
71
+ - lib/project/ruby_motion_query/rmq_font.rb
72
+ - lib/project/ruby_motion_query/rmq_image.rb
73
+ - lib/project/ruby_motion_query/rmq_rect.rb
74
+ - lib/project/ruby_motion_query/rmq_screen_data.rb
75
+ - lib/project/ruby_motion_query/rmq_stylesheet.rb
76
+ - lib/project/ruby_motion_query/rmq_view_data.rb
77
+ - lib/project/ruby_motion_query/stylers/rmq_button_styler.rb
78
+ - lib/project/ruby_motion_query/stylers/rmq_image_button_styler.rb
79
+ - lib/project/ruby_motion_query/stylers/rmq_image_view_styler.rb
80
+ - lib/project/ruby_motion_query/stylers/rmq_linear_layout_styler.rb
81
+ - lib/project/ruby_motion_query/stylers/rmq_relative_layout_styler.rb
82
+ - lib/project/ruby_motion_query/stylers/rmq_styler_helper.rb
83
+ - lib/project/ruby_motion_query/stylers/rmq_text_view_styler.rb
84
+ - lib/project/ruby_motion_query/stylers/rmq_view_styler.rb
85
+ - lib/project/version.rb
86
+ - templates/screen/app/screens/name_screen.rb
87
+ - templates/screen/app/stylesheets/name_screen_stylesheet.rb
88
+ - templates/screen/spec/screens/name_screen_spec.rb
89
+ homepage: https://github.com/infinitered/bluepotion
90
+ licenses:
91
+ - MIT
92
+ metadata: {}
93
+ post_install_message: |2-
94
+ <>
95
+ ||
96
+ ( ) BluePotion
97
+ ``
98
+ rdoc_options: []
99
+ require_paths:
100
+ - lib
101
+ required_ruby_version: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - ">="
104
+ - !ruby/object:Gem::Version
105
+ version: '0'
106
+ required_rubygems_version: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ requirements: []
112
+ rubyforge_project:
113
+ rubygems_version: 2.4.6
114
+ signing_key:
115
+ specification_version: 4
116
+ summary: BluePotion - Just like RedPotion, but for Android. The best combination of
117
+ RubyMotion tools and libraries for Android
118
+ test_files: []
119
+ has_rdoc: