copy_by_xumc 0.0.0 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -1,4 +1,17 @@
1
1
  copy
2
2
  ====
3
3
 
4
- rails gem, copy gem
4
+ 这是对zeroclipboard封装的gem包。更简单的实现zeroclipboard的剪贴板的功能。
5
+
6
+ **使用说明**
7
+
8
+
9
+ - 首先,在Gemfile中添加
10
+ gem 'copy_by_xumc'
11
+ - 其次,在需要使用copy功能的页面加入js引入命令。<%= javascript_include_tag "/zeroclipboard/ZeroClipboard" %>
12
+ - 再次,复制按钮使用copy_button helper方法导入。
13
+ 有三个参数,第一个为按钮显示的内容。第二个为点击此按钮复制的内容。第三个为html节点属性的hash。
14
+
15
+ **示例**
16
+
17
+ `<%= copy_button("copy", "this is the text to be copyed", {:id => "copy_id", :href => "http://www.glodon.com"}) %>`
data/copy_by_xumc.gemspec CHANGED
@@ -1,11 +1,12 @@
1
+ # -*- encoding: utf-8 -*-
1
2
  Gem::Specification.new do |s|
2
3
  s.name = 'copy_by_xumc'
3
- s.version = '0.0.0'
4
+ s.version = '0.1.0'
4
5
  s.date = '2012-01-30'
5
6
  s.summary = "swf copy "
6
7
  s.description = "A simple copy gem"
7
8
  s.authors = ["xumc"]
8
- s.email = 'xumc@grandsoft.com.cn'
9
+ s.email = ['xumc@grandsoft.com.cn']
9
10
  s.files = `git ls-files`.split($\)
10
11
  s.executables = s.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
11
12
  s.require_paths = ["lib"]
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: copy_by_xumc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,14 +12,15 @@ cert_chain: []
12
12
  date: 2012-01-30 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: A simple copy gem
15
- email: xumc@grandsoft.com.cn
15
+ email:
16
+ - xumc@grandsoft.com.cn
16
17
  executables: []
17
18
  extensions: []
18
19
  extra_rdoc_files: []
19
20
  files:
20
21
  - README.md
21
22
  - copy_by_xumc.gemspec
22
- - lib/copy.rb
23
+ - lib/copy_by_xumc.rb
23
24
  - lib/helpers/copy_helper.rb
24
25
  - lib/zeroclipboard/ZeroClipboard.as
25
26
  - lib/zeroclipboard/ZeroClipboard.fla