lfd 0.0.1

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.
Files changed (5) hide show
  1. data/README.rdoc +6 -0
  2. data/bin/lfd +55 -0
  3. data/lfd.rdoc +5 -0
  4. data/lib/lfd_version.rb +3 -0
  5. metadata +93 -0
data/README.rdoc ADDED
@@ -0,0 +1,6 @@
1
+ = lfd : Linux Flash Develop
2
+
3
+ Command-line tool to make flash developing easy on Linux.
4
+
5
+ :include:lfd.rdoc
6
+
data/bin/lfd ADDED
@@ -0,0 +1,55 @@
1
+ #!/usr/bin/env ruby
2
+ # 1.9 adds realpath to resolve symlinks; 1.8 doesn't
3
+ # have this method, so we add it so we get resolved symlinks
4
+ # and compatibility
5
+ unless File.respond_to? :realpath
6
+ class File #:nodoc:
7
+ def self.realpath path
8
+ return realpath(File.readlink(path)) if symlink?(path)
9
+ path
10
+ end
11
+ end
12
+ end
13
+ $: << File.expand_path(File.dirname(File.realpath(__FILE__)) + '/../lib')
14
+ require 'rubygems'
15
+ require 'gli'
16
+ require 'lfd_version'
17
+ require 'lfd'
18
+
19
+ include GLI
20
+
21
+ program_desc 'Linux Flash Develop'
22
+
23
+ ####
24
+
25
+ version Lfd::VERSION
26
+
27
+ {
28
+
29
+ :init => 'initialize an AS3 project at current working directory',
30
+ :build => 'build current project',
31
+ :run => 'run built swf file with debugger version of flash player',
32
+ :test => 'build and run current project',
33
+ :release => 'build binary swf of release version',
34
+ :clean => 'remove files in current directory that were added by LFD'
35
+
36
+ }.each do |cmd, text|
37
+
38
+ desc text
39
+ command cmd do |c|
40
+ c.action do
41
+ LFD.new.send(cmd)
42
+ end
43
+ end
44
+
45
+ end
46
+
47
+ pre { true }
48
+
49
+ on_error do |exception|
50
+ # Error logic here
51
+ # return false to skip default error handling
52
+ true
53
+ end
54
+
55
+ exit GLI.run(ARGV)
data/lfd.rdoc ADDED
@@ -0,0 +1,5 @@
1
+ = lfd
2
+
3
+ Generate this with
4
+ lfd rdoc
5
+ After you have described your command line interface
@@ -0,0 +1,3 @@
1
+ module Lfd
2
+ VERSION = '0.0.1'
3
+ end
metadata ADDED
@@ -0,0 +1,93 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: lfd
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - qhwa
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-05-22 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rake
16
+ requirement: &24050640 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: *24050640
25
+ - !ruby/object:Gem::Dependency
26
+ name: rdoc
27
+ requirement: &24050120 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *24050120
36
+ - !ruby/object:Gem::Dependency
37
+ name: gli
38
+ requirement: &24049700 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: *24049700
47
+ description: ! ' LFD, which stands for "Linux Flash Develop", will help you develop
48
+ Flash and Flex applications on Linux.
49
+
50
+ '
51
+ email: qhwa@163.com
52
+ executables:
53
+ - lfd
54
+ extensions: []
55
+ extra_rdoc_files:
56
+ - README.rdoc
57
+ - lfd.rdoc
58
+ files:
59
+ - bin/lfd
60
+ - lib/lfd_version.rb
61
+ - README.rdoc
62
+ - lfd.rdoc
63
+ homepage: http://q.pnq.cc
64
+ licenses: []
65
+ post_install_message:
66
+ rdoc_options:
67
+ - --title
68
+ - lfd
69
+ - --main
70
+ - README.rdoc
71
+ - -ri
72
+ require_paths:
73
+ - lib
74
+ - lib
75
+ required_ruby_version: !ruby/object:Gem::Requirement
76
+ none: false
77
+ requirements:
78
+ - - ! '>='
79
+ - !ruby/object:Gem::Version
80
+ version: '0'
81
+ required_rubygems_version: !ruby/object:Gem::Requirement
82
+ none: false
83
+ requirements:
84
+ - - ! '>='
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
87
+ requirements: []
88
+ rubyforge_project:
89
+ rubygems_version: 1.8.17
90
+ signing_key:
91
+ specification_version: 3
92
+ summary: Flash develop tool on Linux
93
+ test_files: []