sencha-touch-rails 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +1 -0
- data/.project +17 -0
- data/CHANGELOG.md +8 -0
- data/Gemfile +10 -0
- data/Gemfile.lock +67 -0
- data/README.md +44 -0
- data/Rakefile +10 -0
- data/bin/download_sencha_touch.rb +33 -0
- data/ext/mkrf_conf.rb +9 -0
- data/lib/sass_load_paths.rb +10 -0
- data/lib/sencha-touch-rails.rb +6 -0
- data/lib/sencha-touch/rails.rb +6 -0
- data/lib/sencha-touch/rails/engine.rb +7 -0
- data/lib/sencha-touch/rails/version.rb +6 -0
- data/lib/theme_images.rb +18 -0
- data/sencha-touch-rails.gemspec +26 -0
- metadata +108 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 5f94e18b61c6103c271511fd6bd903177aa45ba6
|
4
|
+
data.tar.gz: 8b312b430d1921b63cc2793b9c8ec903c87a07f0
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a496a74fe9d69f7be62353dd0d4e509559a9d36f935d69d2caaefa5e6b63d6e10c80c2d064719066296d61fdfca6f60ae064ffc9f7b3b5b11b93ee0a320c554d
|
7
|
+
data.tar.gz: 89f53d2511bb4541ba8981fe22052c55f26b02b1d59f5f9190a2c09612cfa2a67f7e6ffb816a0940ed8bd49a4ca72f46c274ace867824eef391a5ba1698fce9f
|
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
sencha-touch-rails-*.gem
|
data/.project
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<projectDescription>
|
3
|
+
<name>sencha-touch-rails</name>
|
4
|
+
<comment></comment>
|
5
|
+
<projects>
|
6
|
+
</projects>
|
7
|
+
<buildSpec>
|
8
|
+
<buildCommand>
|
9
|
+
<name>com.aptana.ide.core.unifiedBuilder</name>
|
10
|
+
<arguments>
|
11
|
+
</arguments>
|
12
|
+
</buildCommand>
|
13
|
+
</buildSpec>
|
14
|
+
<natures>
|
15
|
+
<nature>com.aptana.ruby.core.rubynature</nature>
|
16
|
+
</natures>
|
17
|
+
</projectDescription>
|
data/CHANGELOG.md
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
# Specify your gem's dependencies in jquery-rails.gemspec
|
4
|
+
gemspec
|
5
|
+
# Rails is already being pulled in through gemspec
|
6
|
+
# gem "rails", :git => "git://github.com/rails/rails.git"
|
7
|
+
#gem "rack"
|
8
|
+
#gem "sprockets"
|
9
|
+
#gem "compass"
|
10
|
+
#gem "sass"
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
sencha-touch-rails (1.0.2)
|
5
|
+
railties (>= 3.2.1, < 5.0)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
actionpack (4.2.0)
|
11
|
+
actionview (= 4.2.0)
|
12
|
+
activesupport (= 4.2.0)
|
13
|
+
rack (~> 1.6.0)
|
14
|
+
rack-test (~> 0.6.2)
|
15
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
16
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.1)
|
17
|
+
actionview (4.2.0)
|
18
|
+
activesupport (= 4.2.0)
|
19
|
+
builder (~> 3.1)
|
20
|
+
erubis (~> 2.7.0)
|
21
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
22
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.1)
|
23
|
+
activesupport (4.2.0)
|
24
|
+
i18n (~> 0.7)
|
25
|
+
json (~> 1.7, >= 1.7.7)
|
26
|
+
minitest (~> 5.1)
|
27
|
+
thread_safe (~> 0.3, >= 0.3.4)
|
28
|
+
tzinfo (~> 1.1)
|
29
|
+
builder (3.2.2)
|
30
|
+
erubis (2.7.0)
|
31
|
+
i18n (0.7.0)
|
32
|
+
json (1.8.1)
|
33
|
+
loofah (2.0.1)
|
34
|
+
nokogiri (>= 1.5.9)
|
35
|
+
mini_portile (0.6.1)
|
36
|
+
minitest (5.5.0)
|
37
|
+
nokogiri (1.6.5)
|
38
|
+
mini_portile (~> 0.6.0)
|
39
|
+
rack (1.6.0)
|
40
|
+
rack-test (0.6.2)
|
41
|
+
rack (>= 1.0)
|
42
|
+
rails-deprecated_sanitizer (1.0.3)
|
43
|
+
activesupport (>= 4.2.0.alpha)
|
44
|
+
rails-dom-testing (1.0.5)
|
45
|
+
activesupport (>= 4.2.0.beta, < 5.0)
|
46
|
+
nokogiri (~> 1.6.0)
|
47
|
+
rails-deprecated_sanitizer (>= 1.0.1)
|
48
|
+
rails-html-sanitizer (1.0.1)
|
49
|
+
loofah (~> 2.0)
|
50
|
+
railties (4.2.0)
|
51
|
+
actionpack (= 4.2.0)
|
52
|
+
activesupport (= 4.2.0)
|
53
|
+
rake (>= 0.8.7)
|
54
|
+
thor (>= 0.18.1, < 2.0)
|
55
|
+
rake (10.4.2)
|
56
|
+
rubyzip (1.1.6)
|
57
|
+
thor (0.19.1)
|
58
|
+
thread_safe (0.3.4)
|
59
|
+
tzinfo (1.2.2)
|
60
|
+
thread_safe (~> 0.1)
|
61
|
+
|
62
|
+
PLATFORMS
|
63
|
+
ruby
|
64
|
+
|
65
|
+
DEPENDENCIES
|
66
|
+
rubyzip
|
67
|
+
sencha-touch-rails!
|
data/README.md
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
# sencha-touch-rails
|
2
|
+
|
3
|
+
This gem provides:
|
4
|
+
|
5
|
+
* Sencha Touch 2.0.0.beta3
|
6
|
+
|
7
|
+
## Rails 3.1
|
8
|
+
|
9
|
+
For Rails 3.1 and greater, the files will be added to the asset pipeline and available to use.
|
10
|
+
|
11
|
+
Add one of this lines to the file `app/assets/javascripts/application.js`:
|
12
|
+
|
13
|
+
//= require sencha-touch-all
|
14
|
+
or
|
15
|
+
//= require sencha-touch-all-debug
|
16
|
+
|
17
|
+
Create `app/assets/stylesheets/sencha-touch.scss` and add the following lines in it:
|
18
|
+
|
19
|
+
@import 'sencha-touch-rails';
|
20
|
+
|
21
|
+
@include sencha-panel;
|
22
|
+
@include sencha-buttons;
|
23
|
+
@include sencha-sheet;
|
24
|
+
@include sencha-picker;
|
25
|
+
@include sencha-tabs;
|
26
|
+
@include sencha-toolbar;
|
27
|
+
@include sencha-toolbar-forms;
|
28
|
+
@include sencha-indexbar;
|
29
|
+
@include sencha-list;
|
30
|
+
@include sencha-list-paging;
|
31
|
+
@include sencha-list-pullrefresh;
|
32
|
+
@include sencha-layout;
|
33
|
+
@include sencha-carousel;
|
34
|
+
@include sencha-form;
|
35
|
+
@include sencha-msgbox;
|
36
|
+
@include sencha-loading-spinner;
|
37
|
+
|
38
|
+
You can include more icon styles by adding:
|
39
|
+
|
40
|
+
@include pictos-iconmask('wifi');
|
41
|
+
|
42
|
+
More about Sencha Touch Theming:
|
43
|
+
|
44
|
+
[http://www.sencha.com/blog/an-introduction-to-theming-sencha-touch](http://www.sencha.com/blog/an-introduction-to-theming-sencha-touch)
|
data/Rakefile
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rubygems/user_interaction'
|
3
|
+
require 'open-uri'
|
4
|
+
require 'zip'
|
5
|
+
require 'fileutils'
|
6
|
+
|
7
|
+
|
8
|
+
def download_sencha_touch(sencha_touch_zip=nil)
|
9
|
+
$VERBOSE = true
|
10
|
+
size = ""
|
11
|
+
sencha_touch_zip = 'http://builds.sencha.com/touch/sencha-touch-2.4.1-gpl.zip'
|
12
|
+
puts "Get #{sencha_touch_zip}"
|
13
|
+
open( sencha_touch_zip,
|
14
|
+
:content_length_proc => lambda {|t|
|
15
|
+
if t && 0 < t
|
16
|
+
size = t.to_s
|
17
|
+
end
|
18
|
+
},
|
19
|
+
:progress_proc => lambda {|s|
|
20
|
+
print "Downloading #{s} of #{size} \r"
|
21
|
+
},
|
22
|
+
"User-Agent" => "Mozilla/5.0 (X11; U; Linux; i686; en-US; rv:1.6) Gecko Debian/1.6-7","Referer" => "http://github.com/AlexVangelov/sencha-touch-rails/") {|zf|
|
23
|
+
Zip::File.open(zf.path) do |zipfile|
|
24
|
+
zipfile.each{|e|
|
25
|
+
print "Extracting #{File.basename(e.to_s)} \r"
|
26
|
+
fpath = File.join('sencha-touch', e.to_s)
|
27
|
+
FileUtils.mkdir_p(File.dirname(fpath))
|
28
|
+
zipfile.extract(e, fpath){ true }
|
29
|
+
}
|
30
|
+
end
|
31
|
+
}
|
32
|
+
puts "Download and Extract Sencha Touch [OK] "
|
33
|
+
end
|
data/ext/mkrf_conf.rb
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rubygems/command.rb'
|
3
|
+
|
4
|
+
f = File.open(File.join(File.dirname(__FILE__), "Rakefile"), "w")
|
5
|
+
f.write("import '../bin/download_sencha_touch.rb'\n")
|
6
|
+
f.write("task :default do\n")
|
7
|
+
f.write("\tdownload_sencha_touch\n")
|
8
|
+
f.write("end\n")
|
9
|
+
f.close
|
@@ -0,0 +1,10 @@
|
|
1
|
+
module Sass::Rails
|
2
|
+
class SassTemplate
|
3
|
+
def sass_options_from_rails(scope)
|
4
|
+
options = scope.environment.context_class.sass_config
|
5
|
+
options.load_paths << "#{Gem.loaded_specs['compass'].full_gem_path}/frameworks/compass/stylesheets"
|
6
|
+
options.load_paths << "#{Gem.loaded_specs['compass'].full_gem_path}/frameworks/blueprint/stylesheets"
|
7
|
+
return options
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
data/lib/theme_images.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
module SenchaTouch
|
2
|
+
module SassExtensions
|
3
|
+
module Functions
|
4
|
+
module ThemeImages
|
5
|
+
def theme_image(theme, path, mime_type = nil)
|
6
|
+
path = path.value
|
7
|
+
images_path = File.join(File.expand_path('../../',__FILE__), "vendor/assets", "images", theme.value)
|
8
|
+
real_path = File.join(images_path, path)
|
9
|
+
inline_image_string(data(real_path), compute_mime_type(path, mime_type))
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
module Sass::Script::Functions
|
17
|
+
include SenchaTouch::SassExtensions::Functions::ThemeImages
|
18
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
require File.expand_path('../lib/sencha-touch/rails/version', __FILE__)
|
3
|
+
|
4
|
+
Gem::Specification.new do |s|
|
5
|
+
s.name = "sencha-touch-rails"
|
6
|
+
s.version = SenchaTouch::Rails::VERSION
|
7
|
+
s.platform = Gem::Platform::RUBY
|
8
|
+
s.authors = ["Alex Vangelov"]
|
9
|
+
s.email = ["email@data.bg"]
|
10
|
+
s.homepage = "http://rubygems.org/gems/sencha-touch-rails"
|
11
|
+
s.summary = "Using Sencha Touch with Rails"
|
12
|
+
s.description = "This gem provides Sencha Touch GPL to Rails assets pipeline"
|
13
|
+
|
14
|
+
s.required_rubygems_version = ">= 1.3.6"
|
15
|
+
s.rubyforge_project = "sencha-touch-rails"
|
16
|
+
|
17
|
+
s.add_dependency "railties", ">= 3.2.1", "< 5.0"
|
18
|
+
#s.add_dependency "thor", "~> 0.14"
|
19
|
+
s.add_dependency "compass", ">= 1.0.1"
|
20
|
+
|
21
|
+
s.files = `git ls-files`.split("\n")
|
22
|
+
s.extensions = 'ext/mkrf_conf.rb'
|
23
|
+
s.require_path = 'lib'
|
24
|
+
|
25
|
+
s.add_development_dependency "rubyzip"
|
26
|
+
end
|
metadata
ADDED
@@ -0,0 +1,108 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sencha-touch-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.2.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Alex Vangelov
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-12-25 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: railties
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 3.2.1
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '5.0'
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 3.2.1
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '5.0'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: compass
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: 1.0.1
|
40
|
+
type: :runtime
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 1.0.1
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: rubyzip
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
61
|
+
description: This gem provides Sencha Touch GPL to Rails assets pipeline
|
62
|
+
email:
|
63
|
+
- email@data.bg
|
64
|
+
executables: []
|
65
|
+
extensions:
|
66
|
+
- ext/mkrf_conf.rb
|
67
|
+
extra_rdoc_files: []
|
68
|
+
files:
|
69
|
+
- ".gitignore"
|
70
|
+
- ".project"
|
71
|
+
- CHANGELOG.md
|
72
|
+
- Gemfile
|
73
|
+
- Gemfile.lock
|
74
|
+
- README.md
|
75
|
+
- Rakefile
|
76
|
+
- bin/download_sencha_touch.rb
|
77
|
+
- ext/mkrf_conf.rb
|
78
|
+
- lib/sass_load_paths.rb
|
79
|
+
- lib/sencha-touch-rails.rb
|
80
|
+
- lib/sencha-touch/rails.rb
|
81
|
+
- lib/sencha-touch/rails/engine.rb
|
82
|
+
- lib/sencha-touch/rails/version.rb
|
83
|
+
- lib/theme_images.rb
|
84
|
+
- sencha-touch-rails.gemspec
|
85
|
+
homepage: http://rubygems.org/gems/sencha-touch-rails
|
86
|
+
licenses: []
|
87
|
+
metadata: {}
|
88
|
+
post_install_message:
|
89
|
+
rdoc_options: []
|
90
|
+
require_paths:
|
91
|
+
- lib
|
92
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
98
|
+
requirements:
|
99
|
+
- - ">="
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: 1.3.6
|
102
|
+
requirements: []
|
103
|
+
rubyforge_project: sencha-touch-rails
|
104
|
+
rubygems_version: 2.4.5
|
105
|
+
signing_key:
|
106
|
+
specification_version: 4
|
107
|
+
summary: Using Sencha Touch with Rails
|
108
|
+
test_files: []
|