Skip to content
Browse files

Updated ReactiveCocoa to 1.0.0

  • Loading branch information...
1 parent 7053790 commit f754cf58bb163c648e367f0108973753ab53b631 @MSNexploder MSNexploder committed Feb 19, 2013
Showing with 48 additions and 0 deletions.
  1. +48 −0 ReactiveCocoa/1.0.0/ReactiveCocoa.podspec
View
48 ReactiveCocoa/1.0.0/ReactiveCocoa.podspec
@@ -0,0 +1,48 @@
+Pod::Spec.new do |s|
+ s.name = "ReactiveCocoa"
+ s.version = "1.0.0"
+ s.summary = "A framework for composing and transforming sequences of values."
+ s.homepage = "https://github.com/blog/1107-reactivecocoa-is-now-open-source"
+ s.author = { "Josh Abernathy" => "josh@github.com" }
+ s.source = { :git => "https://github.com/ReactiveCocoa/ReactiveCocoa.git", :tag => "v#{s.version}" }
+ s.license = 'Simplified BSD License'
+ s.description = "ReactiveCocoa offers:\n" \
+ "1. The ability to compose operations on future data.\n" \
+ "2. An approach to minimizing state and mutability.\n" \
+ "3. A declarative way to define behaviors and the relationships between properties.\n" \
+ "4. A unified, high-level interface for asynchronous operations.\n" \
+ "5. A lovely API on top of KVO."
+
+ s.requires_arc = true
+ s.ios.deployment_target = '5.0'
+ s.osx.deployment_target = '10.7'
+ s.compiler_flags = '-DOS_OBJECT_USE_OBJC=0'
+
+ s.subspec 'Core' do |sp|
+ files = FileList['ReactiveCocoaFramework/ReactiveCocoa/*.{h,m}']
+ sp.ios.source_files = files.dup.exclude(/NSButton/, /AppKit/)
+ sp.osx.source_files = files.dup.exclude(/UIControl/, /UIText/, /RACEventTrampoline/, /RACDelegateProxy/)
+ sp.header_dir = 'ReactiveCocoa'
+
+ sp.dependency 'JRSwizzle', '~> 1.0'
+ sp.dependency 'libextobjc/EXTKeyPathCoding', '~> 0.2.5'
+ sp.dependency 'libextobjc/EXTConcreteProtocol', '~> 0.2.5'
+ sp.dependency 'libextobjc/EXTScope', '~> 0.2.5'
+ end
+
+ s.subspec 'RACExtensions' do |sp|
+ files = FileList['RACExtensions/*.{h,m}']
+ sp.ios.source_files = files.dup.exclude(/NSTask/)
+ sp.osx.source_files = files
+ sp.dependency 'ReactiveCocoa/Core'
+ end
+
+ def s.pre_install (pod, _)
+ pod.source_files.each { |source|
+ contents = source.read
+ if contents.gsub!(%r{\bReactiveCocoa/(?:\w+/)*(EXT\w+|metamacros)\.h\b}, '\1.h')
+ File.open(source, 'w') { |file| file.puts(contents) }
+ end
+ }
+ end
+end

0 comments on commit f754cf5

Please sign in to comment.
Something went wrong with that request. Please try again.