alerter 1.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in motion-tab.gemspec
4
+ gemspec
@@ -0,0 +1,8 @@
1
+ ios_alerter
2
+ ===========
3
+
4
+ This is my first Gem for RubyMotion.
5
+
6
+ It doesn't do anything other than show how easy it is to create the foundation for a gem.
7
+
8
+ And of course, you may use the awesomeness of this gem to show alerts in iOS with great ease! :)
@@ -0,0 +1,4 @@
1
+ $:.unshift("/Library/RubyMotion/lib")
2
+ require 'motion/project'
3
+ require 'bundler'
4
+ Bundler.setup
@@ -0,0 +1,15 @@
1
+ # -*- encoding: utf-8 -*-
2
+ Gem::Specification.new do |gem|
3
+ gem.authors = ["Jerry"]
4
+ gem.email = ["jerry.john.jacob@live.com"]
5
+ gem.description = "Alerter is a simple way to show pop up alerts"
6
+ gem.summary = "A very simple iOS alerter"
7
+ gem.homepage = "https://github.com/jerryjohnjacob/ios_alerter"
8
+
9
+ gem.files = `git ls-files`.split($\)
10
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
11
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
12
+ gem.name = "alerter"
13
+ gem.require_paths = ["lib"]
14
+ gem.version = "1.0"
15
+ end
@@ -0,0 +1,9 @@
1
+ unless defined?(Motion::Project::Config)
2
+ raise "This file must be required within a RubyMotion project Rakefile."
3
+ end
4
+
5
+ Motion::Project::App.setup do |app|
6
+ Dir.glob(File.join(File.dirname(__FILE__), "alerter/*.rb")).each do |file|
7
+ app.files.unshift(file)
8
+ end
9
+ end
@@ -0,0 +1,7 @@
1
+ class AlertController
2
+ def show_alert(message="No message")
3
+ alert = UIAlertView.new
4
+ alert.message = message
5
+ alert.show
6
+ end
7
+ end
metadata ADDED
@@ -0,0 +1,51 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: alerter
3
+ version: !ruby/object:Gem::Version
4
+ version: '1.0'
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Jerry
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2014-02-27 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: Alerter is a simple way to show pop up alerts
15
+ email:
16
+ - jerry.john.jacob@live.com
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - Gemfile
22
+ - README.md
23
+ - Rakefile
24
+ - alerter.gemspec
25
+ - lib/alerter.rb
26
+ - lib/alerter/alert_controller.rb
27
+ homepage: https://github.com/jerryjohnjacob/ios_alerter
28
+ licenses: []
29
+ post_install_message:
30
+ rdoc_options: []
31
+ require_paths:
32
+ - lib
33
+ required_ruby_version: !ruby/object:Gem::Requirement
34
+ none: false
35
+ requirements:
36
+ - - ! '>='
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ required_rubygems_version: !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
45
+ requirements: []
46
+ rubyforge_project:
47
+ rubygems_version: 1.8.24
48
+ signing_key:
49
+ specification_version: 3
50
+ summary: A very simple iOS alerter
51
+ test_files: []