ti 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,7 +15,7 @@ module Ti
15
15
  copy_defaults
16
16
  remove_old_files
17
17
  generate_files
18
- log "Your Titanium project is ready for you to get rockin!"
18
+ log "Your Titanium project is ready for you to get coding!"
19
19
  else
20
20
  error "There was an error generating your Titanium project."
21
21
  end
@@ -30,18 +30,18 @@ module Ti
30
30
 
31
31
  def generate_files
32
32
  create_project_directory
33
- touch('Readme.mkd')
34
33
  full_app_hash = {:app_name => @project_name.capitalize, :app_name_underscore => underscore(@project_name), :platform => @device_platform}
35
34
  create_with_template('app/app.coffee', 'app/app.coffee', full_app_hash)
36
35
  create_with_template("app/#{underscore(@project_name)}/app.coffee", 'app/app_project.coffee', full_app_hash)
37
36
  create_with_template("app/#{underscore(@project_name)}/api.coffee", 'app/api.coffee', full_app_hash)
38
37
 
39
- create_new_file(".gitignore", templates('gitignore'))
38
+ create_with_template('.gitignore', 'defaults/gitignore', full_app_hash)
39
+
40
40
  create_new_file("spec/app_spec.coffee", templates('specs/app_spec.coffee'))
41
41
  create_new_file("app/#{underscore(@project_name)}/stylesheets/app.sass", templates('app/stylesheets/app.sass'))
42
42
 
43
-
44
43
  create_with_template('config/config.rb', 'defaults/config', full_app_hash)
44
+ create_with_template("app/#{underscore(@project_name)}/helpers/application.coffee", 'app/helpers/application.coffee', full_app_hash)
45
45
 
46
46
  default_templates = ['Rakefile', 'Readme.mkd', 'Guardfile', 'Coffeefile']
47
47
  default_templates.each do |tempfile|
@@ -4,7 +4,7 @@ class <%= app_name %>.API
4
4
 
5
5
  requestURI: (path, query={}) ->
6
6
  # NOTE: Setup your own API endpoint, as below
7
- <%= app_name %>.API_ENDPOINT = "http://<%= app_name.downcase %>.com/api/v1"
7
+ <%= app_name %>.API_ENDPOINT = "http://<%= app_name_underscore %>.com/api/v1"
8
8
 
9
9
  uri = "#{<%= app_name %>.API_ENDPOINT}#{path}.json?"
10
10
  for own key, value of query
@@ -8,7 +8,7 @@
8
8
  else
9
9
  null
10
10
 
11
- # Attempt to log in with saved creds
11
+ # Attempt to log in with saved credentials
12
12
  hasCurrentSession: ->
13
13
  login = Ti.App.Properties.getString 'login'
14
14
  password = Ti.App.Properties.getString 'password'
@@ -1,3 +1,3 @@
1
1
  module Ti
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ti
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -16,7 +16,7 @@ date: 2011-05-23 00:00:00.000000000Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: sass
19
- requirement: &2153826940 !ruby/object:Gem::Requirement
19
+ requirement: &2157524040 !ruby/object:Gem::Requirement
20
20
  none: false
21
21
  requirements:
22
22
  - - ~>
@@ -24,10 +24,10 @@ dependencies:
24
24
  version: 3.1.1
25
25
  type: :runtime
26
26
  prerelease: false
27
- version_requirements: *2153826940
27
+ version_requirements: *2157524040
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: guard-sass
30
- requirement: &2153826380 !ruby/object:Gem::Requirement
30
+ requirement: &2157523380 !ruby/object:Gem::Requirement
31
31
  none: false
32
32
  requirements:
33
33
  - - ~>
@@ -35,10 +35,10 @@ dependencies:
35
35
  version: 0.0.6
36
36
  type: :runtime
37
37
  prerelease: false
38
- version_requirements: *2153826380
38
+ version_requirements: *2157523380
39
39
  - !ruby/object:Gem::Dependency
40
40
  name: guard
41
- requirement: &2153825860 !ruby/object:Gem::Requirement
41
+ requirement: &2157522680 !ruby/object:Gem::Requirement
42
42
  none: false
43
43
  requirements:
44
44
  - - ~>
@@ -46,10 +46,10 @@ dependencies:
46
46
  version: 0.3.4
47
47
  type: :runtime
48
48
  prerelease: false
49
- version_requirements: *2153825860
49
+ version_requirements: *2157522680
50
50
  - !ruby/object:Gem::Dependency
51
51
  name: guard-coffeescript
52
- requirement: &2153825340 !ruby/object:Gem::Requirement
52
+ requirement: &2157521940 !ruby/object:Gem::Requirement
53
53
  none: false
54
54
  requirements:
55
55
  - - ~>
@@ -57,10 +57,10 @@ dependencies:
57
57
  version: 0.2.0
58
58
  type: :runtime
59
59
  prerelease: false
60
- version_requirements: *2153825340
60
+ version_requirements: *2157521940
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: guard-livereload
63
- requirement: &2153824840 !ruby/object:Gem::Requirement
63
+ requirement: &2157521460 !ruby/object:Gem::Requirement
64
64
  none: false
65
65
  requirements:
66
66
  - - ~>
@@ -68,10 +68,10 @@ dependencies:
68
68
  version: 0.1.10
69
69
  type: :runtime
70
70
  prerelease: false
71
- version_requirements: *2153824840
71
+ version_requirements: *2157521460
72
72
  - !ruby/object:Gem::Dependency
73
73
  name: jasmine
74
- requirement: &2153824320 !ruby/object:Gem::Requirement
74
+ requirement: &2157520980 !ruby/object:Gem::Requirement
75
75
  none: false
76
76
  requirements:
77
77
  - - ~>
@@ -79,10 +79,10 @@ dependencies:
79
79
  version: 1.0.2.0
80
80
  type: :runtime
81
81
  prerelease: false
82
- version_requirements: *2153824320
82
+ version_requirements: *2157520980
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: coffee-script
85
- requirement: &2153823800 !ruby/object:Gem::Requirement
85
+ requirement: &2157520480 !ruby/object:Gem::Requirement
86
86
  none: false
87
87
  requirements:
88
88
  - - ~>
@@ -90,10 +90,10 @@ dependencies:
90
90
  version: 2.2.0
91
91
  type: :runtime
92
92
  prerelease: false
93
- version_requirements: *2153823800
93
+ version_requirements: *2157520480
94
94
  - !ruby/object:Gem::Dependency
95
95
  name: colored
96
- requirement: &2153823300 !ruby/object:Gem::Requirement
96
+ requirement: &2157520000 !ruby/object:Gem::Requirement
97
97
  none: false
98
98
  requirements:
99
99
  - - ~>
@@ -101,10 +101,10 @@ dependencies:
101
101
  version: '1.2'
102
102
  type: :runtime
103
103
  prerelease: false
104
- version_requirements: *2153823300
104
+ version_requirements: *2157520000
105
105
  - !ruby/object:Gem::Dependency
106
106
  name: rake
107
- requirement: &2153822780 !ruby/object:Gem::Requirement
107
+ requirement: &2157519520 !ruby/object:Gem::Requirement
108
108
  none: false
109
109
  requirements:
110
110
  - - ~>
@@ -112,10 +112,10 @@ dependencies:
112
112
  version: 0.8.7
113
113
  type: :runtime
114
114
  prerelease: false
115
- version_requirements: *2153822780
115
+ version_requirements: *2157519520
116
116
  - !ruby/object:Gem::Dependency
117
117
  name: nokogiri
118
- requirement: &2153822260 !ruby/object:Gem::Requirement
118
+ requirement: &2157519020 !ruby/object:Gem::Requirement
119
119
  none: false
120
120
  requirements:
121
121
  - - ~>
@@ -123,10 +123,10 @@ dependencies:
123
123
  version: 1.4.4
124
124
  type: :runtime
125
125
  prerelease: false
126
- version_requirements: *2153822260
126
+ version_requirements: *2157519020
127
127
  - !ruby/object:Gem::Dependency
128
128
  name: erubis
129
- requirement: &2153821740 !ruby/object:Gem::Requirement
129
+ requirement: &2157518540 !ruby/object:Gem::Requirement
130
130
  none: false
131
131
  requirements:
132
132
  - - ~>
@@ -134,10 +134,10 @@ dependencies:
134
134
  version: 2.7.0
135
135
  type: :runtime
136
136
  prerelease: false
137
- version_requirements: *2153821740
137
+ version_requirements: *2157518540
138
138
  - !ruby/object:Gem::Dependency
139
139
  name: bundler
140
- requirement: &2153821240 !ruby/object:Gem::Requirement
140
+ requirement: &2157518060 !ruby/object:Gem::Requirement
141
141
  none: false
142
142
  requirements:
143
143
  - - ~>
@@ -145,10 +145,10 @@ dependencies:
145
145
  version: 1.0.10
146
146
  type: :development
147
147
  prerelease: false
148
- version_requirements: *2153821240
148
+ version_requirements: *2157518060
149
149
  - !ruby/object:Gem::Dependency
150
150
  name: rspec
151
- requirement: &2153820720 !ruby/object:Gem::Requirement
151
+ requirement: &2157517580 !ruby/object:Gem::Requirement
152
152
  none: false
153
153
  requirements:
154
154
  - - ~>
@@ -156,10 +156,10 @@ dependencies:
156
156
  version: 2.5.0
157
157
  type: :development
158
158
  prerelease: false
159
- version_requirements: *2153820720
159
+ version_requirements: *2157517580
160
160
  - !ruby/object:Gem::Dependency
161
161
  name: rocco
162
- requirement: &2153820200 !ruby/object:Gem::Requirement
162
+ requirement: &2157512960 !ruby/object:Gem::Requirement
163
163
  none: false
164
164
  requirements:
165
165
  - - ~>
@@ -167,7 +167,7 @@ dependencies:
167
167
  version: '0.6'
168
168
  type: :development
169
169
  prerelease: false
170
- version_requirements: *2153820200
170
+ version_requirements: *2157512960
171
171
  description: Titanium Rapid Development Framework
172
172
  email: robert@codewranglers.org
173
173
  executables:
@@ -216,7 +216,7 @@ files:
216
216
  - lib/ti/templates/defaults/Rakefile.erb
217
217
  - lib/ti/templates/defaults/Readme.mkd.erb
218
218
  - lib/ti/templates/defaults/config.erb
219
- - lib/ti/templates/gitignore
219
+ - lib/ti/templates/defaults/gitignore.erb
220
220
  - lib/ti/templates/rakefile
221
221
  - lib/ti/templates/specs/app_spec.coffee
222
222
  - lib/ti/utils.rb